summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-01-29 13:47:29 -0700
committerKarl Williamson <public@khwilliamson.com>2012-01-29 13:58:13 -0700
commitb7cc434062b30e0d0748be34d122883bd89711a7 (patch)
treee532afac575daf4cf40488f434ff6a1002ca67b7 /t
parentea4d335b445aa246c7b9e4d60a6983bb23108fc0 (diff)
downloadperl-b7cc434062b30e0d0748be34d122883bd89711a7.tar.gz
lc.t: Add tests for previously broken IN_UNI_8_BIT
This adds tests for commit b36bf33f6564c3e9a9ff131f4f3c9980b7a8af15
Diffstat (limited to 't')
-rw-r--r--t/op/lc.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/op/lc.t b/t/op/lc.t
index 08efdc014a..5a71163ae5 100644
--- a/t/op/lc.t
+++ b/t/op/lc.t
@@ -10,7 +10,7 @@ BEGIN {
use feature qw( fc );
-plan tests => 124;
+plan tests => 128;
is(lc(undef), "", "lc(undef) is ''");
is(lcfirst(undef), "", "lcfirst(undef) is ''");
@@ -271,3 +271,12 @@ for ("$temp") {
# new in Unicode 5.1.0
is(lc("\x{1E9E}"), "\x{df}", "lc(LATIN CAPITAL LETTER SHARP S)");
+
+{
+ use feature 'unicode_strings';
+ use bytes;
+ is(lc("\xc0"), "\xc0", "lc of above-ASCII Latin1 is itself under use bytes");
+ is(lcfirst("\xc0"), "\xc0", "lcfirst of above-ASCII Latin1 is itself under use bytes");
+ is(uc("\xe0"), "\xe0", "uc of above-ASCII Latin1 is itself under use bytes");
+ is(ucfirst("\xe0"), "\xe0", "ucfirst of above-ASCII Latin1 is itself under use bytes");
+}