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