Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adapt Supply.zip test for subtly changed signature
Made the zipping operator a named parameter (:with).  This should allow later
implementation of zipping N supplies rather than just 2
  • Loading branch information
lizmat committed Apr 19, 2014
1 parent 7084b8b commit c0f33ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S17-concurrency/supply.t
Expand Up @@ -148,7 +148,7 @@ for (ThreadPoolScheduler, CurrentThreadScheduler) {
my $s2 = Supply.new;

my @res;
my $tap = $s1.zip($s2, &infix:<~>).tap({ @res.push($_) });
my $tap = $s1.zip($s2, :with( &infix:<~> )).tap({ @res.push($_) });

$s1.more(1);
$s1.more(2);
Expand All @@ -158,7 +158,7 @@ for (ThreadPoolScheduler, CurrentThreadScheduler) {
$s1.done();
$s2.done();

is @res.join(','), '1a,2b', 'zipping taps works';
is_deeply @res, [<1a 2b>], 'zipping taps works';
}

#?rakudo skip "Cannot call method 'more' on a null object"
Expand Down

0 comments on commit c0f33ab

Please sign in to comment.