Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

enhance 114432 test case with typed exception.

  • Loading branch information...
commit db9ed206f4053637661374a3d505ca7854e4c6ba 1 parent e76e8b9
timo timo authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 S04-statements/repeat.t
8 S04-statements/repeat.t
View
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 19;
+plan 21;
# L<S04/The C<repeat> statement/"more Pascal-like repeat loop">
@@ -129,8 +129,8 @@ plan 19;
# RT #114432
#?niecza todo
{
- try eval 'repeat { "but I myself" }';
- ok (~$! ~~ /'"repeat" is missing its "while" or "until"'/),
- "can't repeat alone";
+ use lib "t/spec/packages";
+ use Test::Util;
+ throws_like 'repeat { "but I myself" }', X::Syntax::Missing, what => '"while" or "until"';
}
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.