Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add (passing) test for RT #122134
  • Loading branch information
usev6 committed Dec 13, 2015
1 parent 6d06a5d commit da7ff73
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions S04-phasers/in-loop.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 5;
plan 6;

# TODO, based on synopsis 4:
#
Expand All @@ -18,8 +18,7 @@ plan 5;

# L<S04/"Phasers">

#?rakudo.moar todo "NEXT/LEAVE ordering RT #124952"
#?rakudo.jvm skip "RT #122134 - last+ENTER in loop"
#?rakudo todo "NEXT/LEAVE ordering RT #124952"
{
my $str;

Expand All @@ -42,8 +41,7 @@ plan 5;
'trait blocks work properly in for loop';
}

#?rakudo.moar todo "NEXT/LEAVE ordering RT #124952"
#?rakudo.jvm skip "RT #122134 - last+ENTER in loop"
#?rakudo todo "NEXT/LEAVE ordering RT #124952"
{
my $str;

Expand Down Expand Up @@ -111,4 +109,11 @@ plan 5;
'LEAVE in while loop works as expected';
}

# RT #122134
{
my $rt122134;
for 1 { last; ENTER { $rt122134 = "hurz" } };
is $rt122134, 'hurz', 'no UnwindException with "last" and "ENTER" in for loop';
}

# vim: ft=perl6

0 comments on commit da7ff73

Please sign in to comment.