diff options
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"; +} |