This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Regenerate known_pod_issues.dat
[perl5.git] / t / op / lc_user.t
CommitLineData
3a2263fe
RGS
1BEGIN {
2 chdir 't';
3 @INC = '../lib';
4 require './test.pl';
5}
6
a6f87d8c
KW
7plan tests => 5;
8
9%utf8::ToSpecUpper = (
10"s" => "SS", # Make sure can handle weird ASCII translations
11);
3a2263fe
RGS
12
13sub ToUpper {
14 return <<END;
150061 0063 0041
16END
17}
18
19is("\Ufoo\x{101}", "foo\x{101}", "no changes on 'foo'");
20is("\Ubar\x{101}", "BAr\x{101}", "changing 'ab' on 'bar' ");
a6f87d8c
KW
21my $s = 's';
22utf8::upgrade $s;
23is(uc($s), "SS", "Verify uc('s') is 'SS' with our weird xlation, and utf8");
3a2263fe
RGS
24
25sub ToLower {
26 return <<END;
270041 0061
28END
29}
30
31is("\LFOO\x{100}", "FOO\x{100}", "no changes on 'FOO'");
32is("\LBAR\x{100}", "BaR\x{100}", "changing 'A' on 'BAR' ");
33