Skip to content

Commit

Permalink
replace invalid autothreading ~~ with subset (<=)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Jul 28, 2014
1 parent 4d174ed commit df19092
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions integration/99problems-21-to-30.t
Expand Up @@ -45,9 +45,7 @@ plan 15;

@rand = <a b c d e f g h>.pick(3);
is @rand.elems, 3, 'pick() should return the correct number of items';
#?rakudo todo 'RT #122414'
#?niecza todo 'unknown'
ok ?(all(@rand) ~~ any(@letters)), '... and they should be in the letters';
ok ?(@rand (<=) @letters), '... and they should be in the letters';
}

{
Expand Down Expand Up @@ -80,9 +78,7 @@ plan 15;

my @numbers = lotto(6, 49);
is @numbers.elems, 6, 'lotto() should return the correct number of numbers';
#?rakudo todo 'RT #122414'
#?niecza todo 'unknown'
ok ?(all(@numbers) ~~ any(1..49)), '... and they should be in the correct range';
ok ?(@numbers (<=) (1..49)), '... and they should be in the correct range';
my %unique = map { ($_ => 1) }, @numbers;
is %unique.keys.elems, 6, '... and they should all be unique numbers';
}
Expand Down

0 comments on commit df19092

Please sign in to comment.