1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/usr/bin/perl -w
#
# $Id: Fingerprint.t,v 1.1 2001/04/30 01:36:12 ftobin Exp $
#
use strict;
use lib './t';
use MyTest;
use GnuPG::Fingerprint;
my $v1 = '5A29DAE3649ACCA7BF59A67DBAED721F334C9V14';
my $v2 = '4F863BBBA8166F0A340F600356FFD10A260C4FA3';
my $fingerprint = GnuPG::Fingerprint->new( as_hex_string => $v1 );
# deprecation test
TEST
{
$fingerprint->hex_data() eq $v1;
};
# deprecation test
TEST
{
$fingerprint->hex_data( $v2 );
$fingerprint->as_hex_string() eq $v2;
};
|