Skip to content

Commit

Permalink
Add test for RT #118037
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Oct 15, 2014
1 parent 69f5590 commit 85396dd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions S09-hashes/objecthash.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 31;
plan 32;

{
class A { method Str() { 'foo' } };
Expand All @@ -23,7 +23,7 @@ plan 31;
} #2

# combinations of typed and objecthash
{
{
my Int %h{Rat};
%h{0.5} = 1;
%h{0.3} = 2;
Expand Down Expand Up @@ -67,3 +67,10 @@ plan 31;
#?rakudo todo 'oh noes, it dies'
is %h{*}.join(","), "2,3", 'check whatever access with Mu as key';
} #6

# RT #118037
{
my %h{Any};
%h{Any}=1;
ok %h{Any}:exists, '.exists returns True on a %h{Any} in a TypedHash';
}

0 comments on commit 85396dd

Please sign in to comment.