diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-30 18:18:51 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-30 18:18:51 +0000 |
commit | ef9edfd01e3c829c5c5b98c37662df9d1108dc9e (patch) | |
tree | 73b1b2a37f00358f6528aa3a939303c242a47b6d /t/op/each.t | |
parent | 2eb25c996f78f171b9e185efef03146c255a8fd3 (diff) | |
download | perl-ef9edfd01e3c829c5c5b98c37662df9d1108dc9e.tar.gz |
UTF-8 nit from Inaba Hiroto.
p4raw-id: //depot/perl@8615
Diffstat (limited to 't/op/each.t')
-rwxr-xr-x | t/op/each.t | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/t/op/each.t b/t/op/each.t index f1012c6402..397176a40d 100755 --- a/t/op/each.t +++ b/t/op/each.t @@ -6,7 +6,7 @@ BEGIN { push @INC, '../lib'; } -print "1..25\n"; +print "1..26\n"; $h{'abc'} = 'ABC'; $h{'def'} = 'DEF'; @@ -163,9 +163,15 @@ print "ok 23\n"; print "#$u{$_}\n" for keys %u; # Used to core dump before change #8056. print "ok 24\n"; -%u = (qu"\xe3\x81\x82" => "downglade"); +$d = qu"\xe3\x81\x82"; +%u = ($d => "downgrade"); for (keys %u) { use bytes; print "not " if length ne 3 or $_ ne "\xe3\x81\x82"; print "ok 25\n"; } +{ + use bytes; + print "not " if length($d) ne 6 or $d ne qu"\xe3\x81\x82"; + print "ok 26\n"; +} |