Commit | Line | Data |
49cb94c6 |
1 | print "1..6\n"; |
2 | |
11882669 |
3 | |
4 | BEGIN { |
5 | chdir 't' if -d 't'; |
6 | @INC = '../lib'; |
7 | } |
8 | |
49cb94c6 |
9 | my $foo = "foo"; |
10 | |
11 | print "not " unless qu(abc$foo) eq "abcfoo"; |
12 | print "ok 1\n"; |
13 | |
14 | # qu is always Unicode, even in EBCDIC, so \x41 is 'A' and \x{61} is 'a'. |
15 | |
16 | print "not " unless qu(abc\x41) eq "abcA"; |
17 | print "ok 2\n"; |
18 | |
19 | print "not " unless qu(abc\x{61}$foo) eq "abcafoo"; |
20 | print "ok 3\n"; |
21 | |
22 | print "not " unless qu(\x{41}\x{100}\x61\x{200}) eq "A\x{100}a\x{200}"; |
23 | print "ok 4\n"; |
24 | |
11882669 |
25 | { |
26 | |
27 | use bytes; |
28 | |
49cb94c6 |
29 | print "not " unless join(" ", unpack("C*", qu(\x80))) eq "194 128"; |
30 | print "ok 5\n"; |
31 | |
32 | print "not " unless join(" ", unpack("C*", qu(\x{100}))) eq "196 128"; |
33 | print "ok 6\n"; |
34 | |
11882669 |
35 | } |
36 | |