File: Fingerprint.t

package info (click to toggle)
libgnupg-interface-perl 0.52-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,296 kB
  • sloc: perl: 3,637; makefile: 10; sh: 1
file content (29 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (10)
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;
};