Blame t/09contr.t

Packit Service a45ac5
#!/usr/bin/perl
Packit Service f99136
Packit Service f99136
#
Packit Service f99136
# Test the decode on constructed values
Packit Service f99136
#
Packit Service f99136
Packit Service f99136
use Convert::ASN1;
Packit Service f99136
BEGIN { require 't/funcs.pl' }
Packit Service f99136
Packit Service f99136
print "1..4\n";
Packit Service f99136
Packit Service f99136
Packit Service f99136
btest 1, $asn  = Convert::ASN1->new or warn $asn->error;
Packit Service f99136
btest 2, $asn->prepare(q(
Packit Service f99136
    str STRING
Packit Service f99136
)) or warn $asn->error;
Packit Service f99136
Packit Service f99136
my $buf = pack "C*", 0x24, 0x80,
Packit Service f99136
			0x04, 0x03, 0x61, 0x62, 0x63,
Packit Service f99136
			0x04, 0x03, 0x44, 0x45, 0x46,
Packit Service f99136
			0x00, 0x00;
Packit Service f99136
Packit Service f99136
Packit Service f99136
btest 3, $ret = $asn->decode($buf) or warn $asn->error;
Packit Service f99136
stest 4, "abcDEF", $ret->{str};
Packit Service f99136