Adding todo tests
[p5sagit/p5-mst-13.2.git] / t / op / qu.t
CommitLineData
49cb94c6 1print "1..6\n";
2
3my $foo = "foo";
4
5print "not " unless qu(abc$foo) eq "abcfoo";
6print "ok 1\n";
7
8# qu is always Unicode, even in EBCDIC, so \x41 is 'A' and \x{61} is 'a'.
9
10print "not " unless qu(abc\x41) eq "abcA";
11print "ok 2\n";
12
13print "not " unless qu(abc\x{61}$foo) eq "abcafoo";
14print "ok 3\n";
15
16print "not " unless qu(\x{41}\x{100}\x61\x{200}) eq "A\x{100}a\x{200}";
17print "ok 4\n";
18
19print "not " unless join(" ", unpack("C*", qu(\x80))) eq "194 128";
20print "ok 5\n";
21
22print "not " unless join(" ", unpack("C*", qu(\x{100}))) eq "196 128";
23print "ok 6\n";
24