Skip to content

Commit e203199

Browse files
committed
Extend test for RT #116597
1 parent ece6378 commit e203199

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

S02-types/hash.t

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 89;
5+
plan 90;
66

77
# basic lvalue assignment
88
# L<S09/Hashes>
@@ -279,7 +279,11 @@ lives_ok { Hash.new("a" => "b") }, 'Hash.new($pair) lives';
279279
is %hash<bar><baz>, 'zoom', 'binding on auto-vivified hash value works';
280280
%hash<foo><baz> := my $b;
281281
#?rakudo todo 'auto-vivified binding does not work yet: RT #118947'
282-
ok $b =:= %hash<foo><baz>, 'binding variable worked';
282+
ok $b =:= %hash<foo><baz>,
283+
'identity test "=:=" ok after binding variable to autovivified hash value';
284+
%hash<bar> := my $c;
285+
ok $c =:= %hash<bar>,
286+
'identity test "=:=" ok after binding variable to non autovivified hash value';
283287
} #1
284288

285289
# RT #75694

0 commit comments

Comments
 (0)