Skip to content

Commit b48a9fb

Browse files
committed
baghash.t fixes
* .kv returns a list of unitemized parcels, so .tree it before sorting * do not use # in fudge messages, TAP does not like that * fudge for moar
1 parent 905aa8e commit b48a9fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

S02-types/baghash.t

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ sub showkv($x) {
122122

123123
{
124124
my $a = (1,2,3,2,2,2,2).BagHash;
125-
is $a.kv.sort({ .[0] }), ((1, 1), (2, 5), (3, 1)).list.sort, "BagHash.kv returns list of keys and values";
125+
is $a.kv.tree.sort({ .[0] }), ([1, 1], [2, 5], [3, 1]).list.sort, "BagHash.kv returns list of keys and values";
126126
}
127127

128128
#?rakudo skip "Odd number of elements"
@@ -374,7 +374,8 @@ sub showkv($x) {
374374
ok @a.grep(* eq 'a').elems <= 1, '.grab(2) returned at most one "a"';
375375
is @a.grep(* eq 'b').elems, 2 - @a.grep(* eq 'a').elems, '.grab(2) and the rest are "b"';
376376
is $b.total, 0, '.grab *should* change BagHash';
377-
#?rakudo.jvm todo "RT #120407"
377+
#?rakudo.jvm todo "RT 120407"
378+
#?rakudo.moar todo "RT 120407"
378379
is $b.elems, 0, '.grab *should* change BagHash';
379380
}
380381

@@ -387,7 +388,8 @@ sub showkv($x) {
387388
is @a.grep(* eq 'a').elems, 1, '.grab(*) (1)';
388389
is @a.grep(* eq 'b').elems, 2, '.grab(*) (2)';
389390
is $b.total, 0, '.grab *should* change BagHash';
390-
#?rakudo.jvm todo "RT #120407"
391+
#?rakudo.jvm todo "RT 120407"
392+
#?rakudo.moar todo "RT 120407"
391393
is $b.elems, 0, '.grab *should* change BagHash';
392394
}
393395

0 commit comments

Comments
 (0)