diff options
Diffstat (limited to '')
-rw-r--r-- | compiler/parser/parser_test.go | 8 |
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('^'), }, |