summaryrefslogtreecommitdiff
path: root/t/op/tr.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-03-04 17:36:04 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-03-04 17:36:04 +0000
commit94472101973f2669f5034174c504c45df6a04c85 (patch)
tree5f078d948d960a82d6fd90ae719e0054afeceb57 /t/op/tr.t
parente0a47bd2cb14247750ebc5ca933bb1ba015aa70a (diff)
downloadperl-94472101973f2669f5034174c504c45df6a04c85.tar.gz
More tr/// UTF-8 fixes from Inaba Hiroto.
p4raw-id: //depot/perl@9015
Diffstat (limited to 't/op/tr.t')
-rwxr-xr-xt/op/tr.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/op/tr.t b/t/op/tr.t
index b10f4f2495..eb5c4ca27b 100755
--- a/t/op/tr.t
+++ b/t/op/tr.t
@@ -5,7 +5,7 @@ BEGIN {
@INC = '../lib';
}
-print "1..55\n";
+print "1..57\n";
$_ = "abcdefghijklmnopqrstuvwxyz";
@@ -315,3 +315,13 @@ print "ok 54\n";
print "not " unless $a eq "X";
print "ok 55\n";
+# UTF8 range tests from Inaba Hiroto
+
+($a = "\x{200}") =~ tr/\x00-\x{100}/X/c;
+print "not " unless $a eq "X";
+print "ok 56\n";
+
+($a = "\x{200}") =~ tr/\x00-\x{100}/X/cs;
+print "not " unless $a eq "X";
+print "ok 57\n";
+