BEGIN { $| = 1; print "1..4\n"; } BEGIN { $^W = 0 } # hate use CBOR::XS; print "ok 1\n"; my $t = decode_cbor pack "H*", "82c48221196ab3c5822003"; print $t->[0] eq "273.15" ? "" : "not ", "ok 2 # $t->[0]\n"; print $t->[1] eq "1.5" ? "" : "not ", "ok 3 # $t->[1]\n"; $t = encode_cbor $t; print $t eq (pack "H*", "82c48221196ab3c482200f") ? "" : "not ", "ok 4 # ", (unpack "H*", $t), "\n";