diff options
Diffstat (limited to 'test/net/imap/test_imap_response_parser.rb')
-rw-r--r-- | test/net/imap/test_imap_response_parser.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb index f106e4a61d..fca71e2436 100644 --- a/test/net/imap/test_imap_response_parser.rb +++ b/test/net/imap/test_imap_response_parser.rb @@ -56,6 +56,15 @@ EOF end end + def test_flag_xlist_inbox + parser = Net::IMAP::ResponseParser.new + response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint) +* XLIST (\\Inbox) "." "INBOX" +EOF + assert_equal [:Inbox], response.attr.data + end + + def test_resp_text_code parser = Net::IMAP::ResponseParser.new response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint) |