There can be multiple yacc/bison errors.
[p5sagit/p5-mst-13.2.git] / t / op / tr.t
CommitLineData
c8e3bb4c 1# tr.t
2
3print "1..4\n";
4
5$_ = "abcdefghijklmnopqrstuvwxyz";
6
7tr/a-z/A-Z/;
8
9print "not " unless $_ eq "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
10print "ok 1\n";
11
12tr/A-Z/a-z/;
13
14print "not " unless $_ eq "abcdefghijklmnopqrstuvwxyz";
15print "ok 2\n";
16
17tr/b-y/B-Y/;
18
19print "not " unless $_ eq "aBCDEFGHIJKLMNOPQRSTUVWXYz";
20print "ok 3\n";
21
22# In EBCDIC 'I' is \xc9 and 'J' is \0xd1, 'i' is \x89 and 'j' is \x91.
23# Yes, discontinuities. Regardless, the \xca in the below should stay
24# untouched (and not became \x8a).
25
26$_ = "I\xcaJ";
27
28tr/I-J/i-j/;
29
30print "not " unless $_ eq "i\xcaj";
31print "ok 4\n";
32
33#