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

Comparing JSON-XS/t/03_types.t (file contents):
Revision 1.5 by root, Sat Jun 23 23:49:29 2007 UTC vs.
Revision 1.6 by root, Mon Jul 23 22:57:40 2007 UTC

1BEGIN { $| = 1; print "1..75\n"; } 1BEGIN { $| = 1; print "1..76\n"; }
2 2
3use utf8; 3use utf8;
4use JSON::XS; 4use JSON::XS;
5 5
6our $test; 6our $test;
52ok (32456 == ((from_json to_json [32456])->[0])); 52ok (32456 == ((from_json to_json [32456])->[0]));
53ok (32789 == ((from_json to_json [32789])->[0])); 53ok (32789 == ((from_json to_json [32789])->[0]));
54ok (32767 == ((from_json to_json [32767])->[0])); 54ok (32767 == ((from_json to_json [32767])->[0]));
55ok (32768 == ((from_json to_json [32768])->[0])); 55ok (32768 == ((from_json to_json [32768])->[0]));
56 56
57my @sparse; @sparse[0,3] = (1, 4);
58ok ("[1,null,null,4]" eq to_json \@sparse);
59

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines