diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-19 19:27:57 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-19 19:27:57 +0000 |
commit | c4d5f83add3e03ac76c328ed8a29701d939174ce (patch) | |
tree | 10e9eac6978b40c3c26b5eff7d3142003a73190a /t/op/each.t | |
parent | 63cd067459124b5dc1d2ae98453df4ffdff11607 (diff) | |
download | perl-c4d5f83add3e03ac76c328ed8a29701d939174ce.tar.gz |
More EBCDIC fixes.
p4raw-id: //depot/perlio@9246
Diffstat (limited to 't/op/each.t')
-rwxr-xr-x | t/op/each.t | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/t/op/each.t b/t/op/each.t index 2e80dcd009..daddc9c3c1 100755 --- a/t/op/each.t +++ b/t/op/each.t @@ -2,11 +2,11 @@ BEGIN { chdir 't' if -d 't'; - @INC = '.'; + @INC = '.'; push @INC, '../lib'; -} +} -print "1..26\n"; +print "1..27\n"; $h{'abc'} = 'ABC'; $h{'def'} = 'DEF'; @@ -163,15 +163,20 @@ print "ok 23\n"; print "#$u{$_}\n" for keys %u; # Used to core dump before change #8056. print "ok 24\n"; +use bytes (); + $d = pack("U*", 0xe3, 0x81, 0x82); +$ol = bytes::length($d); +print "not " unless $ol > 3; +print "ok 25\n"; %u = ($d => "downgrade"); for (keys %u) { use bytes; print "not " if length ne 3 or $_ ne "\xe3\x81\x82"; - print "ok 25\n"; + print "ok 26\n"; } { use bytes; - print "not " if length($d) ne 6; - print "ok 26\n"; + print "not " if length($d) != $ol; + print "ok 27\n"; } |