File: vms_pass.t

package info (click to toggle)
libauthen-dechpwd-perl 2.006-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 236 kB
  • sloc: perl: 244; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (6)
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
use warnings;
use strict;

use Test::More tests => 17;

BEGIN { use_ok "Authen::DecHpwd", qw(vms_password); }

is vms_password(''), undef;
is vms_password('a'), 'A';
is vms_password('A'), 'A';
is vms_password('AbC'), 'ABC';
is vms_password('a!'), undef;
is vms_password('a '), undef;
is vms_password('!a'), undef;
is vms_password(' a'), undef;
is vms_password('a b'), undef;
is vms_password('a_b'), 'A_B';
is vms_password('a$b'), 'A$B';
is vms_password('0'), '0';
is vms_password('abc123'), 'ABC123';
is vms_password('abcdefghijklmnopqrstuvwxyz01234'),
	'ABCDEFGHIJKLMNOPQRSTUVWXYZ01234';
is vms_password('abcdefghijklmnopqrstuvwxyz012345'),
	'ABCDEFGHIJKLMNOPQRSTUVWXYZ012345';
is vms_password('abcdefghijklmnopqrstuvwxyz0123456'), undef;

1;