Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
TODO tests for Promise.anyof/allof type checking
  • Loading branch information
moritz committed Dec 21, 2014
1 parent d859717 commit c2bc1a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion S17-promise/allof.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 10;
plan 11;

{
my $p1 = Promise.new;
Expand Down Expand Up @@ -43,3 +43,6 @@ plan 10;
isa_ok $b, Bool, 'get a bool of the result';
is ~@a, "0 1 2 3 4 5 6 7 8 9", 'got the right order';
}

#?rakudo todo 'proper type checking of arguments'
throws_like { Promise.allof(42) }, X::Promise::Combinator;
5 changes: 4 additions & 1 deletion S17-promise/anyof.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 9;
plan 10;

{
my $p1 = Promise.new;
Expand Down Expand Up @@ -31,3 +31,6 @@ plan 9;
$p1.keep(1);
is $pany.status, Broken, "Other promise keeping doesn't affect status";
}

#?rakudo todo 'proper type checking of arguments'
throws_like { Promise.anyof(42) }, X::Promise::Combinator;

0 comments on commit c2bc1a2

Please sign in to comment.