Skip to content

Commit 0edbecb

Browse files
committed
Do not rely on order of .antipairs
1 parent 17d9189 commit 0edbecb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

S02-types/sethash.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ subtest '.hash does not cause keys to be stringified' => {
446446

447447
{ # coverage; 2016-09-18
448448
my $sh = SetHash.new: <a b b c c c>;
449-
is-deeply $sh.antipairs,
450-
(Bool::True => "a", Bool::True => "c", Bool::True => "b"),
451-
'.antipairs produces correct result';
449+
is-deeply $sh.antipairs.sort(*.value),
450+
(Bool::True => "a", Bool::True => "c", Bool::True => "b").sort(*.value),
451+
'.antipairs produces correct result';
452452

453453
is-deeply $sh.SetHash, $sh, '.SetHash returns self';
454454
}

0 commit comments

Comments
 (0)