--- JSON-XS/t/22_comment_at_eof.t 2010/01/06 08:02:19 1.2 +++ JSON-XS/t/22_comment_at_eof.t 2010/01/07 06:35:43 1.3 @@ -1,9 +1,9 @@ -# provided by makamaka@donzoko.net. +# provided by IKEGAMI@cpan.org use strict; use warnings; -use Test::More tests => 12; +use Test::More tests => 13; use JSON::XS; @@ -42,3 +42,5 @@ is( decoder( "#,foo\n" ), 'undef', 'comment ignored before eof' ); is( decoder( "# []o\n" ), 'undef', 'comment ignored before eof' ); +is( decoder(qq/#\n[#foo\n"#\\n"#\n]/), '["#\n"]', 'array and string in multiple lines' ); +