Debian Codegraph @

lemonldap-ng-common/t/41-Common-EmailAddress.t

raw
1 use warnings;
2
3 # Before `make install' is performed this script should be runnable with
4 # `make test'. After `make install' it should work as `perl Lemonldap-NG-Manager.t'
5
6 #########################
7
8 # change 'tests => 1' to 'tests => last_test_to_print';
9
10 use Test::More tests => 3;
11 BEGIN { use_ok('Lemonldap::NG::Common::EmailAddress') }
12
13 my $name = 'my name';
14 my $mail = '[email protected]';
15 my $format_email;
16
17 ok( $format_email = format_email( $name, $mail ),
18 "calling format_email function" );
19
20 ok( $format_email eq "\"$name\" <$mail>", "testing formatted email value" );