diff options
Diffstat (limited to 't/op/tr.t')
-rwxr-xr-x | t/op/tr.t | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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"; + |