diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-01-29 13:47:29 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-01-29 13:58:13 -0700 |
commit | b7cc434062b30e0d0748be34d122883bd89711a7 (patch) | |
tree | e532afac575daf4cf40488f434ff6a1002ca67b7 | |
parent | ea4d335b445aa246c7b9e4d60a6983bb23108fc0 (diff) | |
download | perl-b7cc434062b30e0d0748be34d122883bd89711a7.tar.gz |
lc.t: Add tests for previously broken IN_UNI_8_BIT
This adds tests for commit b36bf33f6564c3e9a9ff131f4f3c9980b7a8af15
-rw-r--r-- | t/op/lc.t | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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"); +} |