Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove tests for Callable.grep(), which is insane
  • Loading branch information
FROGGS committed Aug 16, 2015
1 parent cf34ae9 commit f827beb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions S32-list/grep.t
Expand Up @@ -47,18 +47,6 @@ my @list = (1 .. 10);
is(@result[4], 9, 'got the value we expected');
}

#?rakudo todo "closure as non-final argument RT #124757"
#?niecza skip 'Invocant handling is NYI'
{
my @result = grep { ($_ % 2) }: @list;
is(+@result, 5, 'we got a list back');
is(@result[0], 1, 'got the value we expected');
is(@result[1], 3, 'got the value we expected');
is(@result[2], 5, 'got the value we expected');
is(@result[3], 7, 'got the value we expected');
is(@result[4], 9, 'got the value we expected');
}

{
is(42.grep({ 1 }), "42", "method form of grep works on numbers");
is('str'.grep({ 1 }), 'str', "method form of grep works on strings");
Expand Down

0 comments on commit f827beb

Please sign in to comment.