Project

General

Profile

Feature #4111 » simple-parse-test.patch

Simple parse test - geoffyoungs (Geoff Youngs), 12/05/2010 12:08 AM

View differences:

test/net/imap/test_imap_response_parser.rb
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)
(2-2/2)