Lines 17-28
Link Here
|
17 |
|
17 |
|
18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
19 |
|
19 |
|
20 |
use Test::More tests => 5; |
20 |
use Test::More tests => 6; |
|
|
21 |
use Test::Warn; |
21 |
|
22 |
|
22 |
BEGIN { |
23 |
BEGIN { |
23 |
use_ok('Koha::Util::Normalize'); |
24 |
use_ok('Koha::Util::Normalize'); |
24 |
} |
25 |
} |
25 |
|
26 |
|
|
|
27 |
subtest 'pass undef' => sub { |
28 |
plan tests => 8; |
29 |
|
30 |
is( legacy_default(), undef, 'legacy_default returns undef' ); |
31 |
warning_is { legacy_default() } undef, 'no warn from legacy_default'; |
32 |
|
33 |
is( remove_spaces(), undef, 'remove_spaces returns undef' ); |
34 |
warning_is { remove_spaces() } undef, 'no warn from remove_spaces'; |
35 |
|
36 |
is( upper_case(), undef, 'upper_case returns undef' ); |
37 |
warning_is { upper_case() } undef, 'no warn from upper_case'; |
38 |
|
39 |
is( lower_case(), undef, 'lower_case returns undef' ); |
40 |
warning_is { lower_case() } undef, 'no warn from lower_case'; |
41 |
}; |
42 |
|
43 |
|
26 |
subtest 'legacy_default() normalizer' => sub { |
44 |
subtest 'legacy_default() normalizer' => sub { |
27 |
|
45 |
|
28 |
plan tests => 1; |
46 |
plan tests => 1; |
29 |
- |
|
|