Skip to content

Commit

Permalink
[v6.d REVIEW] Improve !~~ curry test
Browse files Browse the repository at this point in the history
Test actual returned value and test True/False values

Orig: 693bff1c3
  • Loading branch information
zoffixznet committed Sep 29, 2018
1 parent 23cef8b commit 0786850
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions S02-types/whatever.t
Expand Up @@ -5,7 +5,7 @@ use lib $?FILE.IO.parent(2).add("packages");
use Test;
use Test::Util;

plan 129;
plan 130;

# L<S02/The Whatever Object/"The * character as a standalone term captures the notion of">
# L<S02/Native types/"If any native type is explicitly initialized to">
Expand Down Expand Up @@ -345,7 +345,8 @@ throws-like '*(42)', X::Method::NotFound, typename => 'Whatever';

# RT #126540
{
nok (* !~~ Int)(1), 'Whatever-currying !~~';
is-deeply (* !~~ Int)(1), False, 'Whatever-currying !~~ (1)';
is-deeply (* !~~ Int)("x"), True, 'Whatever-currying !~~ (2)';
}

#?rakudo todo 'useless use corner case RT #130773'
Expand Down

0 comments on commit 0786850

Please sign in to comment.