X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Flc.t;h=1cef3804176053f19447c5cffc2c1e42e0c9f486;hb=1db36481d13cc744ff50a6e79d19885d5071f098;hp=95cf0195a4e9cb355e22a642c72210ea2cc84717;hpb=6818a3573a254af22852a6102b2d70b346bae901;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/lc.t b/t/op/lc.t index 95cf019..1cef380 100644 --- a/t/op/lc.t +++ b/t/op/lc.t @@ -6,7 +6,7 @@ BEGIN { require './test.pl'; } -plan tests => 77; +plan tests => 88; $a = "HELLO.* world"; $b = "hello.* WORLD"; @@ -199,3 +199,16 @@ for (map { $_ } "A\x{100}", "ABC\x{100}", "\x{100}") { is($result, $expect, "[perl #38619]"); } +for (1, 4, 9, 16, 25) { + is(uc "\x{03B0}" x $_, "\x{3a5}\x{308}\x{301}" x $_, + 'uc U+03B0 grows threefold'); + + is(lc "\x{0130}" x $_, "i\x{307}" x $_, 'lc U+0130 grows'); +} + +# bug #43207 +my $temp = "Hello"; +for ("$temp") { + lc $_; + is($_, "Hello"); +}