Skip to content

Commit 7f00929

Browse files
committed
t/op/lc.t: add \L..\U tests
... which were missing from the test suite. Ensure the current behaviour - whereby a \E is not needed to end a \L or \U "chunk" - is tested.
1 parent ddb18e9 commit 7f00929

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/op/lc.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ BEGIN {
1717

1818
use feature qw( fc );
1919

20-
plan tests => 139 + 2 * (5 * 256) + 17;
20+
plan tests => 139 + 2 + 2 * (5 * 256) + 17;
2121

2222
is(lc(undef), "", "lc(undef) is ''");
2323
is(lcfirst(undef), "", "lcfirst(undef) is ''");
@@ -72,6 +72,9 @@ is(uc($b) , "HELLO\.\* WORLD", 'uc');
7272
is(lc($b) , "hello\.\* world", 'lc');
7373
is(fc($b) , "hello\.\* world", 'fc');
7474

75+
is("\L$a\U$b", 'hello.* worldHELLO.* WORLD', '\L$a\U$b');
76+
is("\U$a\L$b", 'HELLO.* WORLDhello.* world', '\U$a\L$b');
77+
7578
# \x{100} is LATIN CAPITAL LETTER A WITH MACRON; its bijective lowercase is
7679
# \x{101}, LATIN SMALL LETTER A WITH MACRON.
7780
# Which is also its foldcase.

0 commit comments

Comments
 (0)