From 3ec662c34841bb5bcf05166d1b9efd800b1e9ea3 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 11 Dec 2021 19:42:32 +0900 Subject: Add tests of compiler/parser package --- compiler/parser/parser_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compiler/parser/parser_test.go') 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 @@ -471,6 +471,14 @@ func TestParse(t *testing.T) { pattern: "[^\\p{Lu}-\\p{Ll}]", syntaxError: synErrRangePropIsUnavailable, }, + { + pattern: "[^\\u{0000}-\\u{10FFFF}]", + syntaxError: synErrUnmatchablePattern, + }, + { + pattern: "[^\\u{0000}-\\u{FFFF}\\u{010000}-\\u{10FFFF}]", + syntaxError: synErrUnmatchablePattern, + }, { pattern: "[^]", ast: newSymbolNode('^'), -- cgit v1.2.3