Skip to content

Commit 01728bd

Browse files
committed
.Map on Hash produces correct results
1 parent c10df83 commit 01728bd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

S32-hash/map.t

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
use v6;
2+
use Test;
3+
plan 2;
4+
5+
{
6+
my %hash = :foo, :42bar;
7+
is-deeply %hash.Map, Map.new( (:foo, :42bar) ),
8+
'.Map on defined Hash produces correct Map';
9+
is-deeply Hash.Map, Map, '.Map on undefined Hash produces Map type object';
10+
}
11+
12+
# vim: ft=perl6

0 commit comments

Comments
 (0)