Navigation Menu

Skip to content

Commit

Permalink
[t/spec] Test for RT 69172
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@28902 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
kyle committed Oct 26, 2009
1 parent ac4ab64 commit 72c5e19
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions S03-operators/arith.t
@@ -1,8 +1,6 @@
use v6;

use Test;

plan 192;
plan *;

my $five = abs(-5);

Expand Down Expand Up @@ -421,6 +419,12 @@ dies_ok( { $x := 0; say 3 div $x; }, 'Division by zero dies and is catchable wit
{
is 6 !% 3, Bool::True, '6 !% 3';
is 6 !% 4, Bool::False, '6 !% 4';

is (1..10).grep({ $_ !% 3 }), <3 6 9>, '!% works with explicit closure';
#?rakudo todo 'RT 69172'
is (1..10).grep( * !% 3 ), <3 6 9>, '!% works with whatever *'
}

done_testing;

# vim: ft=perl6

0 comments on commit 72c5e19

Please sign in to comment.