summaryrefslogtreecommitdiff
path: root/t/op/lc.t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-06-14 11:06:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-06-14 11:06:02 +0000
commit17fa0776055c3d6ef5e8451cfcb9e194ca912faa (patch)
tree2900e3b26ff3b818ea7bbdc691fa82883d31d269 /t/op/lc.t
parentf24aceb1b6884bbb6aae2a756c35663bc6fac2c3 (diff)
downloadperl-17fa0776055c3d6ef5e8451cfcb9e194ca912faa.tar.gz
Fix [perl #43207] lc() or uc() inside sort affect the return value.
p4raw-id: //depot/perl@31377
Diffstat (limited to 't/op/lc.t')
-rw-r--r--t/op/lc.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/op/lc.t b/t/op/lc.t
index 571868fe02..1cef380417 100644
--- a/t/op/lc.t
+++ b/t/op/lc.t
@@ -6,7 +6,7 @@ BEGIN {
require './test.pl';
}
-plan tests => 87;
+plan tests => 88;
$a = "HELLO.* world";
$b = "hello.* WORLD";
@@ -205,3 +205,10 @@ for (1, 4, 9, 16, 25) {
is(lc "\x{0130}" x $_, "i\x{307}" x $_, 'lc U+0130 grows');
}
+
+# bug #43207
+my $temp = "Hello";
+for ("$temp") {
+ lc $_;
+ is($_, "Hello");
+}