Skip to content

Commit d2d60f5

Browse files
author
Jan-Olof Hendig
committed
Added tests for RT #131386. Zoffix++
1 parent 94ba24d commit d2d60f5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

S02-types/baggy.t

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 7;
4+
plan 8;
55

66
# Tests of the Baggy role
77

@@ -55,3 +55,14 @@ subtest '.pick/.roll/.grab reject NaN count' => {
5555
throws-like { ^5 .BagHash.roll: NaN }, Exception, '.roll';
5656
throws-like { ^5 .BagHash.grab: NaN }, Exception, '.grab';
5757
}
58+
59+
# RT 131386
60+
subtest 'can access key of empty list coerced to type' => {
61+
my @tests = <Set SetHash Bag BagHash Mix MixHash Map Hash>;
62+
plan +@tests;
63+
for @tests {
64+
lives-ok { my %x := ()."$_"(); %x<a> }, $_
65+
}
66+
}
67+
68+
# vim: ft=perl6

0 commit comments

Comments
 (0)