Skip to content

Commit

Permalink
Remove tests for .peek
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 23, 2013
1 parent 635b34a commit 3e24470
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions S17-concurrency/channel.t
@@ -1,16 +1,14 @@
use v6;
use Test;

plan 14;
plan 12;

{
my $c = Channel.new;
$c.send(1);
$c.send(2);
is $c.peek, 1, "Peeked first value";
is $c.receive, 1, "Received first value";
is $c.poll, 2, "Polled for second value";
ok $c.peek === Nil, "peek returns Nil when no values available";
ok $c.poll === Nil, "poll returns Nil when no values available";
}

Expand Down

0 comments on commit 3e24470

Please sign in to comment.