Skip to content

Commit

Permalink
Add test for RT #114432
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Nov 14, 2012
1 parent a62d23d commit 69076df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S04-statements/repeat.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 18;
plan 19;

# L<S04/The C<repeat> statement/"more Pascal-like repeat loop">

Expand Down Expand Up @@ -126,4 +126,10 @@ plan 18;
}, 'can share variable between loop body and condition';
}

# RT #114432
{
try eval 'repeat { "but I myself" }';
ok (~$! ~~ /'"repeat" is missing its "while" or "until"'/),
"can't repeat alone";
}
# vim: ft=perl6

0 comments on commit 69076df

Please sign in to comment.