diff --git a/S09-hashes/objecthash.t b/S09-hashes/objecthash.t index 6ce298fe20..863e24b9b5 100644 --- a/S09-hashes/objecthash.t +++ b/S09-hashes/objecthash.t @@ -1,7 +1,7 @@ use v6; use Test; -plan 55; +plan 56; { class A { method Str() { 'foo' } }; @@ -140,6 +140,11 @@ plan 55; eval-lives-ok 'my %*a{Int}', "Accept dynamic object hash" } +# https://github.com/rakudo/rakudo/issues/1486 +{ + ok {:foo, (if 0.5.rand < 1 { :bar })}, 'a conditional inside circumfix {} works'; +} + #vim: ft=perl6 # vim: expandtab shiftwidth=4