ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/JSON-XS/t/17_relaxed.t
(Generate patch)

Comparing JSON-XS/t/17_relaxed.t (file contents):
Revision 1.1 by root, Mon Aug 27 01:49:01 2007 UTC vs.
Revision 1.2 by root, Mon Aug 27 02:03:23 2007 UTC

1BEGIN { $| = 1; print "1..7\n"; } 1BEGIN { $| = 1; print "1..8\n"; }
2 2
3use utf8; 3use utf8;
4use JSON::XS; 4use JSON::XS;
5 5
6our $test; 6our $test;
17 17
18ok ('{"1":2}' eq to_json $json->decode (' {"1":2}')); 18ok ('{"1":2}' eq to_json $json->decode (' {"1":2}'));
19ok ('{"1":2}' eq to_json $json->decode ('{"1":2,}')); 19ok ('{"1":2}' eq to_json $json->decode ('{"1":2,}'));
20ok (!eval { $json->decode ('{,}') }); 20ok (!eval { $json->decode ('{,}') });
21 21
22ok ('[1,2]' eq to_json $json->decode ("[1#,2\n ,2,# ] \n\t]"));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines