ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-BER-XS/t/02_simple.t
(Generate patch)

Comparing Convert-BER-XS/t/02_simple.t (file contents):
Revision 1.11 by root, Sun Apr 21 12:00:42 2019 UTC vs.
Revision 1.12 by root, Mon Apr 22 01:17:19 2019 UTC

1BEGIN { $| = 1; print "1..378\n"; } 1BEGIN { $| = 1; print "1..384\n"; }
2 2
3use common::sense; 3use common::sense;
4use Convert::BER::XS ':all'; 4use Convert::BER::XS ':all';
5 5
6our $test; 6our $test;
52fail "0202ffff", "X.690 8.3.2"; 52fail "0202ffff", "X.690 8.3.2";
53fail "02020001", "X.690 8.3.2"; 53fail "02020001", "X.690 8.3.2";
54fail "0208ffffffffffffffff", "X.690 8.3.2"; 54fail "0208ffffffffffffffff", "X.690 8.3.2";
55 55
56# types 56# types
57roundtrip "020100", [ASN_UNIVERSAL, ASN_INTEGER, 0, 0];
57roundtrip "020105", [ASN_UNIVERSAL, ASN_INTEGER, 0, 5]; 58roundtrip "020105", [ASN_UNIVERSAL, ASN_INTEGER, 0, 5];
58roundtrip "0201ff", [ASN_UNIVERSAL, ASN_INTEGER, 0, -1]; 59roundtrip "0201ff", [ASN_UNIVERSAL, ASN_INTEGER, 0, -1];
59roundtrip "020200ff", [ASN_UNIVERSAL, ASN_INTEGER, 0, 255]; 60roundtrip "020200ff", [ASN_UNIVERSAL, ASN_INTEGER, 0, 255];
60roundtrip "020500ffffffff", [ASN_UNIVERSAL, ASN_INTEGER, 0, 4294967295]; 61roundtrip "020500ffffffff", [ASN_UNIVERSAL, ASN_INTEGER, 0, 4294967295];
61roundtrip "020488776655", [ASN_UNIVERSAL, ASN_INTEGER, 0, -2005440939]; 62roundtrip "020488776655", [ASN_UNIVERSAL, ASN_INTEGER, 0, -2005440939];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines