summaryrefslogtreecommitdiff
path: root/t/op/lc.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-30 17:58:53 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-30 17:58:53 +0000
commitc2955298f73609931e7742722d6cdab7cad91e16 (patch)
tree499ca9280ffb129f823ca7ffacde447b38155663 /t/op/lc.t
parente4e44778093d8ab0f643e5c4d3bbf079882672c3 (diff)
downloadperl-c2955298f73609931e7742722d6cdab7cad91e16.tar.gz
We had no tests that covered the grow paths in pp_uc and pp_lc.
p4raw-id: //depot/perl@28028
Diffstat (limited to 't/op/lc.t')
-rw-r--r--t/op/lc.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/op/lc.t b/t/op/lc.t
index 95cf0195a4..571868fe02 100644
--- a/t/op/lc.t
+++ b/t/op/lc.t
@@ -6,7 +6,7 @@ BEGIN {
require './test.pl';
}
-plan tests => 77;
+plan tests => 87;
$a = "HELLO.* world";
$b = "hello.* WORLD";
@@ -199,3 +199,9 @@ 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');
+}