1
1
use v6 ;
2
2
use Test ;
3
3
4
- plan 252 ;
4
+ plan 250 ;
5
5
6
6
# L<S02/Mutable types/QuantHash of UInt>
7
7
@@ -336,10 +336,8 @@ sub showkv($x) {
336
336
337
337
my $ a = $ b . pickpairs;
338
338
say : $ a . perl ;
339
- isa_ok $ a , List , ' Did we get a List' ;
340
- is $ a . elems , 1 , ' Did we get one element' ;
341
- isa_ok $ a [0 ], Pair , ' Did we get a Pair in the List' ;
342
- ok ($ a [0 ] eq " a\t 1" or $ a [0 ] eq " b\t 2" ), " We got one of the two choices" ;
339
+ isa_ok $ a , Pair , ' Did we get a Pair' ;
340
+ ok ($ a eq " a\t 1" or $ a eq " b\t 2" ), " We got one of the two choices" ;
343
341
344
342
my @ a = $ b . pickpairs(2 );
345
343
is + @ a , 2 , ' .pickpairs(2) returns the right number of items' ;
@@ -368,7 +366,6 @@ sub showkv($x) {
368
366
is @ a . grep (* eq ' b' ). elems , 2 - @ a . grep (* eq ' a' ). elems , ' .grab(2) and the rest are "b"' ;
369
367
is $ b . total, 0 , ' .grab *should* change BagHash' ;
370
368
# ?rakudo.jvm todo "RT #120407"
371
- # ?rakudo.moar todo "RT #120407"
372
369
is $ b . elems , 0 , ' .grab *should* change BagHash' ;
373
370
}
374
371
@@ -381,7 +378,6 @@ sub showkv($x) {
381
378
is @ a . grep (* eq ' b' ). elems , 2 , ' .grab(*) (2)' ;
382
379
is $ b . total, 0 , ' .grab *should* change BagHash' ;
383
380
# ?rakudo.jvm todo "RT #120407"
384
- # ?rakudo.moar todo "RT #120407"
385
381
is $ b . elems , 0 , ' .grab *should* change BagHash' ;
386
382
}
387
383
0 commit comments