Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make S04-phasers/next.t robuster wrt laziness
  • Loading branch information
moritz committed Dec 10, 2012
1 parent 42d1a93 commit 4677a6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions S04-phasers/next.t
Expand Up @@ -59,6 +59,7 @@ plan 13;
NEXT { $str ~= $_ }
die if $_ > 3;
}
0;
}
is $str, '123', "die didn't trigger NEXT \{}";
}
Expand All @@ -71,6 +72,7 @@ plan 13;
NEXT { $str ~= $_ }
leave if $_ > 3;
}
0;
}
#?pugs todo
is $str, '123', "leave didn't trigger NEXT \{}";
Expand All @@ -83,6 +85,7 @@ plan 13;
NEXT { $str ~= $_ }
return if $_ > 3;
}
0;
}
foo();
is $str, '123', "return didn't trigger NEXT \{}";
Expand Down

0 comments on commit 4677a6f

Please sign in to comment.