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

Comparing CBOR-XS/t/53_bignum.t (file contents):
Revision 1.2 by root, Fri Nov 22 15:33:44 2013 UTC vs.
Revision 1.3 by root, Fri Nov 22 15:44:13 2013 UTC

12 12
13$t = encode_cbor $t; 13$t = encode_cbor $t;
14 14
15print $t eq (pack "H*", "82c48221196ab3c482200f") ? "" : "not ", "ok 4 # ", (unpack "H*", $t), "\n"; 15print $t eq (pack "H*", "82c48221196ab3c482200f") ? "" : "not ", "ok 4 # ", (unpack "H*", $t), "\n";
16 16
17# Math::BigFloat loaded by now... 17# Math::BigFloat is loaded by now...
18 18
19for (5..99) { 19for (5..99) {
20 my $n = Math::BigFloat->new ((int rand 1e9) . "." . (int rand 1e9) . "e" . ((int rand 1e8) - 0.5e8)); 20 my $n = Math::BigFloat->new ((int rand 1e9) . "." . (int rand 1e9) . "e" . ((int rand 1e8) - 0.5e8));
21 my $m = decode_cbor encode_cbor $n; 21 my $m = decode_cbor encode_cbor $n;
22 22

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines