Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
correct some tests in light of lazy "for"
  • Loading branch information
moritz committed Dec 10, 2012
1 parent ad3da93 commit ac01495
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/99problems-11-to-20.t
Expand Up @@ -205,15 +205,15 @@ plan 25;
'We should be able to drop list elements using gather';

sub drop4(@list, Int $nth) {
return (@list[$_] if ($_+1) % $nth) for ^@list;
(@list[$_] if ($_+1) % $nth) for ^@list;
}
#?rakudo todo 'unknown'
#?niecza todo
is drop4(<a b c d e f g h i k>, 3), <a b d e g h k>,
'We should be able to drop list elements using (statement if) for';

sub drop5(@list, Int $nth) {
return @list[$_] if ($_+1) % $nth for ^@list;
@list[$_] if ($_+1) % $nth for ^@list;
}
#?rakudo todo 'unknown'
#?niecza todo
Expand Down
1 change: 1 addition & 0 deletions integration/99problems-31-to-40.t
Expand Up @@ -264,6 +264,7 @@ plan 67;
return ($x,$y) if $x+$y == $n;
}
}
0;
}

is goldbach(28), (5, 23), "Goldbach works.";
Expand Down
1 change: 1 addition & 0 deletions integration/99problems-41-to-50.t
Expand Up @@ -44,6 +44,7 @@ plan 11;
return ($x,$y) if $x+$y == $n;
}
}
0;
}

sub goldbachs($from, $to) {
Expand Down

0 comments on commit ac01495

Please sign in to comment.