Skip to content

Commit 1417783

Browse files
committed
test that \0 works inside cclasses
1 parent dffb5e9 commit 1417783

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S05-metasyntax/charset.t

Lines changed: 5 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 53;
15+
plan 54;
1616

1717
# Broken:
1818
# L<S05/Extensible metasyntax (C<< <...> >>)/"A leading [ ">
@@ -132,4 +132,8 @@ is 'Ä' ~~ /:ignoremark (<[A..F]>|x)/, 'Ä',
132132
is 'Ä' ~~ /:ignoremark :ignorecase (<[a..f]>|x)/, 'Ä',
133133
':ignoremark :ignorecase in combination with charclass ranges works with LTM';
134134

135+
{
136+
is ("\0\0\0" ~~ /<[\0]>+/).Str, "\0\0\0", '\0 works inside character classes and matches null';
137+
}
138+
135139
# vim: ft=perl6

0 commit comments

Comments
 (0)