File: UserId.t

package info (click to toggle)
libgnupg-interface-perl 0.33-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 384 kB
  • ctags: 55
  • sloc: perl: 1,357; makefile: 54
file content (28 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (13)
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
#!/usr/bin/perl -w
#
# $Id: UserId.t,v 1.1 2001/04/30 01:36:12 ftobin Exp $
#

use strict;

use lib './t';
use MyTest;
use GnuPG::UserId;

my $v1 = 'Dekan';
my $v2 = 'Frank Tobin';

my $user_id = GnuPG::UserId->new( as_string => $v1 );

# deprecation test
TEST
{
    $user_id->user_id_string() eq $v1;
};

# deprecation test
TEST
{
    $user_id->user_id_string( $v2 );
    $user_id->as_string() eq $v2;
};