Skip to content

Commit b4f521b

Browse files
committed
✅ Add some test coverage for search charset
1 parent cd3ef80 commit b4f521b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/net/imap/test_imap.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,12 @@ def test_unselect
12291229
imap.search(["subject", "hello", Set[1, 2, 3, 4, 5, 8, *(10..100)]])
12301230
assert_equal "subject hello 1:5,8,10:100", server.commands.pop.args
12311231

1232+
imap.search('SUBJECT "Hello world"', "UTF-8")
1233+
assert_equal 'CHARSET UTF-8 SUBJECT "Hello world"', server.commands.pop.args
1234+
1235+
imap.search('CHARSET UTF-8 SUBJECT "Hello world"')
1236+
assert_equal 'CHARSET UTF-8 SUBJECT "Hello world"', server.commands.pop.args
1237+
12321238
imap.search([:*])
12331239
assert_equal "*", server.commands.pop.args
12341240

0 commit comments

Comments
 (0)