Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fudge for_with_only_one_item, gather for niecza
  • Loading branch information
sorear committed Feb 16, 2011
1 parent 7bfcd8e commit 821cdb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions S04-statements/for_with_only_one_item.t
Expand Up @@ -76,6 +76,7 @@ plan 9;
}

# RT #73400
#?niecza skip '\\'
{
my $capture = \[1,2,3];
my $count = 0;
Expand Down
4 changes: 4 additions & 0 deletions S04-statements/gather.t
Expand Up @@ -91,6 +91,7 @@ plan 17;
}

# gather statement prefix
#?niecza skip "gather for"
{
my @out = gather for 1..5 {
take $_;
Expand All @@ -112,6 +113,7 @@ plan 17;
is($count, 2, "gather is lazy");
}

#?niecza skip '%'
{
my @list = gather {
my $v = 1;
Expand All @@ -123,6 +125,7 @@ plan 17;
is ~@list, "2 4 6 8 10", "gather with nested while";
}

#?niecza skip '%'
{
my @list = gather {
loop (my $v = 1; $v <= 10; $v++)
Expand All @@ -141,6 +144,7 @@ plan 17;
'take with multiple arguments .flat tens out';
}

#?niecza skip '%'
{
my sub grep-div(@a, $n) {
gather for @a {
Expand Down

0 comments on commit 821cdb0

Please sign in to comment.