Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[S05-metasyntax/repeat] Fix syntax in an eval_dies_ok

  • Loading branch information...
commit 448f1099e0fd5d150855f7fe47ce5b825ee8142f 1 parent a2ccce2
@sorear sorear authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  S05-metasyntax/repeat.t
2  S05-metasyntax/repeat.t
@@ -45,7 +45,7 @@ ok(!( "abcd" ~~ m/'abc'**{2..*}/), 'Fail open range repetition using closu
# It is illegal to return a list, so this easy mistake fails:
eval_dies_ok('"foo" ~~ m/o{1,3}/', 'P5-style {1,3} range mistake is caught');
-eval_dies_ok('"foo" ~~ m/o{1,}/}', 'P5-style {1,} range mistake is caught');
+eval_dies_ok('"foo" ~~ m/o{1,}/', 'P5-style {1,} range mistake is caught');
# A successful match of such a quantifier always ends "in the middle"
is(~('foo,bar,baz,' ~~ m/[<alpha>+] ** ','/), 'foo,bar,baz', '** with a term worked');
Please sign in to comment.
Something went wrong with that request. Please try again.