From ce4ecc6b13bbf521389f8d90d5ed8b42d2401751 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Jun 2014 14:05:47 +0000 Subject: [PATCH] fold too long line git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/imap/test_imap_response_parser.rb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb index 497f430ea4..8aabbae81f 100644 --- a/test/net/imap/test_imap_response_parser.rb +++ b/test/net/imap/test_imap_response_parser.rb @@ -251,7 +251,21 @@ EOF def test_mixed_boundry parser = Net::IMAP::ResponseParser.new - response = parser.parse("* 2688 FETCH (UID 179161 BODYSTRUCTURE ((\"TEXT\" \"PLAIN\" (\"CHARSET\" \"iso-8859-1\") NIL NIL \"QUOTED-PRINTABLE\" 200 4 NIL NIL NIL)(\"MESSAGE\" \"DELIVERY-STATUS\" NIL NIL NIL \"7BIT\" 318 NIL NIL NIL)(\"MESSAGE\" \"RFC822\" NIL NIL NIL \"7BIT\" 2177 (\"Tue, 11 May 2010 18:28:16 -0400\" \"Re: Welcome letter\" ((\"David\" NIL \"info\" \"xxxxxxxx.si\")) ((\"David\" NIL \"info\" \"xxxxxxxx.si\")) ((\"David\" NIL \"info\" \"xxxxxxxx.si\")) ((\"Doretha\" NIL \"doretha.info\" \"xxxxxxxx.si\")) NIL NIL \"\" \"\") (\"MIXED\" (\"BOUNDARY\" \"000e0cd29212e3e06a0486590ae2\") NIL NIL) 37 NIL NIL NIL) \"REPORT\" (\"BOUNDARY\" \"16DuG.4XbaNOvCi.9ggvq.8Ipnyp3\" \"REPORT-TYPE\" \"delivery-status\") NIL NIL))\r\n") + response = parser.parse("* 2688 FETCH (UID 179161 BODYSTRUCTURE (" \ + "(\"TEXT\" \"PLAIN\" (\"CHARSET\" \"iso-8859-1\") NIL NIL \"QUOTED-PRINTABLE\" 200 4 NIL NIL NIL)" \ + "(\"MESSAGE\" \"DELIVERY-STATUS\" NIL NIL NIL \"7BIT\" 318 NIL NIL NIL)" \ + "(\"MESSAGE\" \"RFC822\" NIL NIL NIL \"7BIT\" 2177" \ + " (\"Tue, 11 May 2010 18:28:16 -0400\" \"Re: Welcome letter\" (" \ + "(\"David\" NIL \"info\" \"xxxxxxxx.si\")) " \ + "((\"David\" NIL \"info\" \"xxxxxxxx.si\")) " \ + "((\"David\" NIL \"info\" \"xxxxxxxx.si\")) " \ + "((\"Doretha\" NIL \"doretha.info\" \"xxxxxxxx.si\")) " \ + "NIL NIL " \ + "\"\" " \ + "\"\")" \ + " (\"MIXED\" (\"BOUNDARY\" \"000e0cd29212e3e06a0486590ae2\") NIL NIL)" \ + " 37 NIL NIL NIL)" \ + " \"REPORT\" (\"BOUNDARY\" \"16DuG.4XbaNOvCi.9ggvq.8Ipnyp3\" \"REPORT-TYPE\" \"delivery-status\") NIL NIL))\r\n") empty_part = response.data.attr['BODYSTRUCTURE'].parts[2] assert_equal(empty_part.lines, 37) assert_equal(empty_part.body.media_type, 'MULTIPART')