Skip to content

Commit

Permalink
Set.hash does not cause keys to be stringified
Browse files Browse the repository at this point in the history
RT#127402
  • Loading branch information
zoffixznet committed Aug 2, 2016
1 parent 8aac698 commit 1efb4d5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S02-types/set.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 177;
plan 178;

sub showset($s) { $s.keys.sort.join(' ') }

Expand Down Expand Up @@ -416,4 +416,12 @@ dies-ok { set(1, 2) «+» set(3, 4) }, 'Set «+» Set is illegal';
isa-ok set(42).Hash.keys[0], Int, "make sure set.Hash returns objects";
}

# RT #127402
subtest '.hash does not cause keys to be stringified' => {
plan 3;
is Set.new($(<a b>)).hash.keys[0][0], 'a', 'Set.new';
is ($(<a b>),).Set.hash.keys[0][0], 'a', '.Set';
is set($(<a b>),).hash.keys[0][0], 'a', 'set()';
}

# vim: ft=perl6

0 comments on commit 1efb4d5

Please sign in to comment.