Skip to content

Commit

Permalink
Test .Map doesn't introduce bogus itemization
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 13, 2018
1 parent a5023b5 commit 0d2d530
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S32-hash/map.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 15;
plan 16;

{
my %hash = :foo, :42bar;
Expand Down Expand Up @@ -71,4 +71,13 @@ subtest 'Map.gist shows only first 100 els' => {
;
}

{
my class C {
has Int @.a;
has Int @.b;
}
lives-ok { C.new(|(a => (1, 2, 3), b => (4, 5, 6)).Map) },
'Map does not introduce bogus Scalar containers';
}

# vim: ft=perl6

0 comments on commit 0d2d530

Please sign in to comment.