Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix *hash sorting stuff.
  • Loading branch information
timo committed Feb 20, 2014
1 parent 2ff24c0 commit 0905696
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion S02-types/baghash.t
Expand Up @@ -122,7 +122,7 @@ sub showkv($x) {

{
my $a = (1,2,3,2,2,2,2).BagHash;
is $a.kv.sort, ((2, 5), (1, 1), (3, 1)).list.sort, "BagHash.kv returns list of keys and values";
is $a.kv.sort({ .[0] }), ((1, 1), (2, 5), (3, 1)).list.sort, "BagHash.kv returns list of keys and values";
}

#?rakudo skip "Odd number of elements"
Expand Down
2 changes: 1 addition & 1 deletion S02-types/mixhash.t
Expand Up @@ -123,7 +123,7 @@ sub showkv($x) {

{
my $a = (1,2,3,2,2,2,2).MixHash;
is $a.kv.sort, ((2, 5), (1, 1), (3, 1)).list.sort, "MixHash.kv returns list of keys and values";
is $a.kv.sort({ .[0] }), ((1, 1), (2, 5), (3, 1)).list.sort, "MixHash.kv returns list of keys and values";
}


Expand Down
2 changes: 1 addition & 1 deletion S02-types/sethash.t
Expand Up @@ -70,7 +70,7 @@ sub showset($s) { $s.keys.sort.join(' ') }

{
my $a = (1,2,3,2,2,2,2).SetHash;
is $a.kv.sort, ((2, Bool::True), (1, Bool::True), (3, Bool::True)).list.sort, "SetHash.kv returns list of keys and values";
is $a.kv.sort, ((1, Bool::True), (2, Bool::True), (3, Bool::True)).list.sort, "SetHash.kv returns list of keys and values";
}


Expand Down

0 comments on commit 0905696

Please sign in to comment.