Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[for.t] fix and unfudge test that was failing due to range bug
  • Loading branch information
Fitz Elliott committed Jan 22, 2011
1 parent 4c37943 commit 1888ab6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions S04-statements/for.t
Expand Up @@ -54,16 +54,10 @@ plan 65;
}

# ... with referential sub
#?rakudo skip 'class accessing outer lexical'
{
my $d = '';
augment class Int {
method some_meth_1 {
$d = $d ~ self
}
};
for 0 .. 5 { .some_meth_1 };
is($d, '012345', 'for 0 .. 5 { .some_sub } works');
my $d = "";
for -2 .. 2 { $d ~= .sign };
is($d, '-1-1011', 'for 0 .. 5 { .some_sub } works');
}

## and now with parens around the range operator
Expand Down

0 comments on commit 1888ab6

Please sign in to comment.