Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
We can't rely on order in which pairs are returned
  • Loading branch information
lizmat committed Apr 16, 2014
1 parent a98a8e0 commit baace2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S02-types/sethash.t
Expand Up @@ -414,8 +414,8 @@ sub showset($s) { $s.keys.sort.join(' ') }
my $s = <a b b c c c d d d d>.SetHash;
is $s.total, 4, '.total gives sum of values (non-empty)';
is +$s, 4, '+$set gives sum of values (non-empty)';
is $s.minpairs, [a=>True,b=>True,c=>True,d=>True], '.minpairs works (non-empty)';
is $s.maxpairs, [a=>True,b=>True,c=>True,d=>True], '.maxpairs works (non-empty)';
is $s.minpairs.sort, [a=>True,b=>True,c=>True,d=>True], '.minpairs works (non-empty)';
is $s.maxpairs.sort, [a=>True,b=>True,c=>True,d=>True], '.maxpairs works (non-empty)';

my $e = ().SetHash;
is $e.total, 0, '.total gives sum of values (empty)';
Expand Down

0 comments on commit baace2c

Please sign in to comment.