diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-28 16:22:26 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-28 16:22:26 +0000 |
commit | 945c54fd8d2501611a8e97dae49e901ff9478cad (patch) | |
tree | e7be4ebc0dbd9964ba352f90cf3c58042fb44318 /t | |
parent | 494f3023e6cb99f0f26ded70a0869fe24d04973e (diff) | |
download | perl-945c54fd8d2501611a8e97dae49e901ff9478cad.tar.gz |
Undo qu. Retract #8814, rewrite op/each part of #8615,
retract toke.c/qu parts of #8583, retract #8485, retract
or rewrite qu parts of #8439 of toke.c, keywords.h, keywords.pl,
op/length.t, and MANIFEST, and delete t/op/qu.t.
p4raw-id: //depot/perl@8967
Diffstat (limited to 't')
-rwxr-xr-x | t/op/each.t | 4 | ||||
-rw-r--r-- | t/op/length.t | 2 | ||||
-rw-r--r-- | t/op/qu.t | 24 |
3 files changed, 3 insertions, 27 deletions
diff --git a/t/op/each.t b/t/op/each.t index 397176a40d..2e80dcd009 100755 --- a/t/op/each.t +++ b/t/op/each.t @@ -163,7 +163,7 @@ print "ok 23\n"; print "#$u{$_}\n" for keys %u; # Used to core dump before change #8056. print "ok 24\n"; -$d = qu"\xe3\x81\x82"; +$d = pack("U*", 0xe3, 0x81, 0x82); %u = ($d => "downgrade"); for (keys %u) { use bytes; @@ -172,6 +172,6 @@ for (keys %u) { } { use bytes; - print "not " if length($d) ne 6 or $d ne qu"\xe3\x81\x82"; + print "not " if length($d) ne 6; print "ok 26\n"; } diff --git a/t/op/length.t b/t/op/length.t index 46f0c59698..df80fcd039 100644 --- a/t/op/length.t +++ b/t/op/length.t @@ -33,7 +33,7 @@ print "ok 3\n"; } { - my $a = qu"\x{80}"; # make "\x{80}" to produce UTF-8 + my $a = pack("U", 0x80); print "not " unless length($a) == 1; print "ok 6\n"; diff --git a/t/op/qu.t b/t/op/qu.t deleted file mode 100644 index 280020445c..0000000000 --- a/t/op/qu.t +++ /dev/null @@ -1,24 +0,0 @@ -print "1..6\n"; - -my $foo = "foo"; - -print "not " unless qu(abc$foo) eq "abcfoo"; -print "ok 1\n"; - -# qu is always Unicode, even in EBCDIC, so \x41 is 'A' and \x{61} is 'a'. - -print "not " unless qu(abc\x41) eq "abcA"; -print "ok 2\n"; - -print "not " unless qu(abc\x{61}$foo) eq "abcafoo"; -print "ok 3\n"; - -print "not " unless qu(\x{41}\x{100}\x61\x{200}) eq "A\x{100}a\x{200}"; -print "ok 4\n"; - -print "not " unless join(" ", unpack("C*", qu(\x80))) eq "194 128"; -print "ok 5\n"; - -print "not " unless join(" ", unpack("C*", qu(\x{100}))) eq "196 128"; -print "ok 6\n"; - |