Skip to content

Commit

Permalink
Test .grep: { /foo/ }
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jan 17, 2019
1 parent 2df8f54 commit ae6ebad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S32-list/grep.t
Expand Up @@ -9,7 +9,7 @@ built-in grep tests
=end pod

plan 45;
plan 46;

my @list = (1 .. 10);

Expand Down Expand Up @@ -183,4 +183,8 @@ my @list = (1 .. 10);
}
}

# https://github.com/rakudo/rakudo/issues/2614
is-deeply ("foo").grep({ /foo/ }), ("foo",),
'Block returning a regex to grep will Do The Right Thing, dubious as it is';

# vim: ft=perl6

0 comments on commit ae6ebad

Please sign in to comment.