Skip to content

Commit

Permalink
2 lazy tests for <== operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Dagur Valberg Johannsson committed May 13, 2013
1 parent 2b4ac5a commit 0bb5a4d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions S03-feeds/basic.t
Expand Up @@ -141,6 +141,22 @@ plan 19;
is(@(@data), <a b c d 0 1 2 3>, 'two stacked feeds');
}

# feed and Inf
#?rakudo skip "isn't lazy"
#?nieza skip "unhandled exception
{
lives_ok { my @a <== 0..Inf }
}

{
my $call-count = 0;
my @a <== gather for 1..10 -> $i { $call-count++; take $i };
@a[0];
#?rakudo todo "isn't lazy"
#?nieza skip "Unhandled exception"
is $call-count, 1;
}

done;

# vim: ft=perl6

2 comments on commit 0bb5a4d

@coke
Copy link
Contributor

@coke coke commented on 0bb5a4d May 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: it's "niecza", and the first skip for niecza is missing a closing quote

@dagurval
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was sloppy of me. I also messed up the test plan. I'll take more care to do proper commits in the future.

Please sign in to comment.