Permalink
Browse files

Add test for RT #114432

  • Loading branch information...
1 parent a62d23d commit 69076dfa8284d53374868cd3c073708ec6383936 @coke coke committed Nov 14, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 S04-statements/repeat.t
View
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 18;
+plan 19;
# L<S04/The C<repeat> statement/"more Pascal-like repeat loop">
@@ -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.