Skip to content

Commit a62d2cf

Browse files
committed
Test to cover RT #130812.
1 parent 8bc33ae commit a62d2cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S05-metachars/tilde.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 29;
4+
plan 30;
55

66
# L<S05/New metacharacters/"The ~ operator is a helper for matching
77
# nested subrules with a specific terminator">
@@ -69,4 +69,8 @@ ok 'x(ab' !~~ m/<&t1>/, '~ and constant atoms (missing closing bracket)';
6969
ok "(f)oo" ~~ /^ \( ~ \) foo $/, 'Only take single atom after goal (1)';
7070
nok "(fo)o" ~~ /^ \( ~ \) foo $/, 'Only take single atom after goal (2)';
7171

72+
# RT #130812
73+
throws-like '/ ‘[’ ~? ‘]’/', X::Syntax::Regex::SolitaryQuantifier,
74+
'Correct error when quantifier placed after ~ metachar';
75+
7276
# vim: ft=perl6

0 commit comments

Comments
 (0)