Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add tests for Supply.grep(smartmatch)
  • Loading branch information
lizmat committed May 11, 2014
1 parent 52e0238 commit a92ff7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S17-supply/grep.t
Expand Up @@ -4,7 +4,7 @@ use lib 't/spec/packages';
use Test;
use Test::Tap;

plan 13;
plan 23;

#?rakudo.jvm todo "D: doesn't work in signatures"
dies_ok { Supply.grep({...}) }, 'can not be called as a class method';
Expand All @@ -16,4 +16,8 @@ for (ThreadPoolScheduler, CurrentThreadScheduler) {
tap_ok Supply.for(1..10).grep( * > 5 ),
[6,7,8,9,10],
"grepping taps works";

tap_ok Supply.for(1..10,"a".."z").grep(Int),
[1..10],
"grepping taps works";
}

0 comments on commit a92ff7c

Please sign in to comment.