We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece6378 commit e203199Copy full SHA for e203199
S02-types/hash.t
@@ -2,7 +2,7 @@ use v6;
2
3
use Test;
4
5
-plan 89;
+plan 90;
6
7
# basic lvalue assignment
8
# L<S09/Hashes>
@@ -279,7 +279,11 @@ lives_ok { Hash.new("a" => "b") }, 'Hash.new($pair) lives';
279
is %hash<bar><baz>, 'zoom', 'binding on auto-vivified hash value works';
280
%hash<foo><baz> := my $b;
281
#?rakudo todo 'auto-vivified binding does not work yet: RT #118947'
282
- ok $b =:= %hash<foo><baz>, 'binding variable worked';
+ 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';
287
} #1
288
289
# RT #75694
0 commit comments