We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc33ae commit a62d2cfCopy full SHA for a62d2cf
S05-metachars/tilde.t
@@ -1,7 +1,7 @@
1
use v6;
2
use Test;
3
4
-plan 29;
+plan 30;
5
6
# L<S05/New metacharacters/"The ~ operator is a helper for matching
7
# nested subrules with a specific terminator">
@@ -69,4 +69,8 @@ ok 'x(ab' !~~ m/<&t1>/, '~ and constant atoms (missing closing bracket)';
69
ok "(f)oo" ~~ /^ \( ~ \) foo $/, 'Only take single atom after goal (1)';
70
nok "(fo)o" ~~ /^ \( ~ \) foo $/, 'Only take single atom after goal (2)';
71
72
+# RT #130812
73
+throws-like '/ ‘[’ ~? ‘]’/', X::Syntax::Regex::SolitaryQuantifier,
74
+ 'Correct error when quantifier placed after ~ metachar';
75
+
76
# vim: ft=perl6
0 commit comments