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

Comparing CBOR-XS/t/51_types.t (file contents):
Revision 1.1 by root, Sun Oct 27 20:40:25 2013 UTC vs.
Revision 1.2 by root, Mon Oct 28 15:37:11 2013 UTC

1BEGIN { $| = 1; print "1..10\n"; } 1BEGIN { $| = 1; print "1..11\n"; }
2 2
3use Types::Serialiser; 3use Types::Serialiser;
4use CBOR::XS; 4use CBOR::XS;
5 5
6print "ok 1\n"; 6print "ok 1\n";
23print $enc ne "\xf7" ? "not " : "", "ok 8\n"; 23print $enc ne "\xf7" ? "not " : "", "ok 8\n";
24 24
25$dec = decode_cbor $enc; 25$dec = decode_cbor $enc;
26print Types::Serialiser::is_error $dec ? "" : "not ", "ok 9\n"; 26print Types::Serialiser::is_error $dec ? "" : "not ", "ok 9\n";
27 27
28print "ok 10\n"; 28$enc = encode_cbor undef;
29print $enc ne "\xf6" ? "not " : "", "ok 10\n";
30
31$dec = decode_cbor $enc;
32print !defined $dec ? "" : "not ", "ok 11\n";
33

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines