aboutsummaryrefslogtreecommitdiff
path: root/compiler/parser/parser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/parser/parser_test.go')
-rw-r--r--compiler/parser/parser_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/parser/parser_test.go b/compiler/parser/parser_test.go
index 1fa0489..bad6404 100644
--- a/compiler/parser/parser_test.go
+++ b/compiler/parser/parser_test.go
@@ -472,6 +472,14 @@ func TestParse(t *testing.T) {
syntaxError: synErrRangePropIsUnavailable,
},
{
+ pattern: "[^\\u{0000}-\\u{10FFFF}]",
+ syntaxError: synErrUnmatchablePattern,
+ },
+ {
+ pattern: "[^\\u{0000}-\\u{FFFF}\\u{010000}-\\u{10FFFF}]",
+ syntaxError: synErrUnmatchablePattern,
+ },
+ {
pattern: "[^]",
ast: newSymbolNode('^'),
},