File: vms_user.t

package info (click to toggle)
libauthen-dechpwd-perl 2.007-1~1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 232 kB
  • sloc: perl: 244; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (5)
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
use warnings;
use strict;

use Test::More tests => 16;

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

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

1;