File: error.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 (14 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use warnings;
use strict;

use Test::More tests => 3;

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

eval { lgi_hpwd("foo\x{100}bar", "foobar", UAI_C_PURDY, 123); };
like $@, qr/\Ainput must contain only octets\b/;

eval { lgi_hpwd("foobar", "foo\x{100}bar", UAI_C_PURDY, 123); };
like $@, qr/\Ainput must contain only octets\b/;

1;