Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sets are unordered, so do not assume that .list preserves order
  • Loading branch information
moritz committed Dec 9, 2012
1 parent ed49c88 commit ad3da93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S02-types/set.t
Expand Up @@ -223,11 +223,11 @@ sub showset($s) { $s.keys.sort.join(' ') }

# RT 107022
{
is_deeply [ ( set ( set <a b c> ), <c> ).list ], [ 'a', 'b', 'c' ],
is_deeply [ ( set ( set <a b c> ), <c> ).list.sort ], [ 'a', 'b', 'c' ],
'set inside set does not duplicate elements';

my $s = set <a b c>;
is_deeply [ ( set $s, <c> ).list ], [ 'a', 'b', 'c' ],
is_deeply [ ( set $s, <c> ).list.sort ], [ 'a', 'b', 'c' ],
'variable of Set type inside set does not duplicate elements';
}

Expand Down

0 comments on commit ad3da93

Please sign in to comment.