Skip to content

Commit edaeffa

Browse files
committed
Tests for RT #125753.
1 parent e10bcfe commit edaeffa

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

S05-metasyntax/charset.t

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ be valid perl6.
1212
1313
=end pod
1414

15-
plan 47;
15+
plan 52;
1616

1717
# Broken:
1818
# L<S05/Extensible metasyntax (C<< <...> >>)/"A leading [ ">
@@ -114,4 +114,15 @@ nok '^' ~~ / <[ \[ .. \] ]> /, '... does not match outside its range';
114114
dies-ok { 'a' ~~ / <+xdigit-digit> / }, "accidental kebabs disallowed";
115115
}
116116

117+
dies-ok { EVAL '/<[Ḍ̇..\x2FFF]>/' }, 'Cannot use NFG synthetic as range endpoint';
118+
119+
# RT #125753
120+
is "Aa1" ~~ /:i <[a..z0..9]>+/, "Aa1", ':i with cclass with multiple ranges works';
121+
is '%E3%81%82' ~~ /:ignorecase ['%' (<[a..f0..9]>|x)**2]+/, '%E3%81%82',
122+
':ignorecase in combination with charclass ranges works with LTM';
123+
is 'Ä' ~~ /:ignoremark (<[A..F]>|x)/, 'Ä',
124+
':ignoremark in combination with charclass ranges works with LTM';
125+
is 'Ä' ~~ /:ignoremark :ignorecase (<[a..f]>|x)/, 'Ä',
126+
':ignoremark :ignorecase in combination with charclass ranges works with LTM';
127+
117128
# vim: ft=perl6

0 commit comments

Comments
 (0)