Skip to content
Browse files

[spec] s/dies_ok/eval_dies_ok/ in S05-metasyntax/repeat.t

git-svn-id: c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 7d2cc8c commit f8648bfa9467048da233e88ca26d1cc8fd32fd8b moritz committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 S05-metasyntax/repeat.t
4 S05-metasyntax/repeat.t
@@ -40,8 +40,8 @@ ok("abcabcabcabcd" ~~ m/[abc]**{2..*}/, 'Open range repetition using closure');
ok(!( "abcd" ~~ m/[abc]**{2..*}/), 'Fail open range repetition using closure');
# It is illegal to return a list, so this easy mistake fails:
-dies_ok({'foo' ~~ m/o{1,3}/}), 'P5-style {1,3} range mistake is caught');
-dies_ok({'foo' ~~ m/o{1,}/}), 'P5-style {1,} range mistake is caught');
+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');
# XXX Is it specced that smartmatching m// returns the matched string?
# A successful match of such a quantifier always ends "in the middle"

0 comments on commit f8648bf

Please sign in to comment.
Something went wrong with that request. Please try again.