test: correct expected test result

This commit is contained in:
Young-Flash 2024-01-12 17:42:18 +08:00
parent d0b310fc93
commit 6033b66ce0
2 changed files with 4 additions and 12 deletions

View file

@ -20,8 +20,7 @@ SOURCE_FILE
PATH_SEGMENT PATH_SEGMENT
NAME_REF NAME_REF
IDENT "Error" IDENT "Error"
ERROR SEMICOLON ";"
SEMICOLON ";"
WHITESPACE "\n" WHITESPACE "\n"
USE USE
USE_KW "use" USE_KW "use"
@ -38,7 +37,4 @@ SOURCE_FILE
IDENT "io" IDENT "io"
SEMICOLON ";" SEMICOLON ";"
WHITESPACE "\n" WHITESPACE "\n"
error 22: expected COMMA error 22: expected R_CURLY
error 22: expected one of `*`, `::`, `{`, `self`, `super` or an identifier
error 23: expected R_CURLY
error 23: expected SEMICOLON

View file

@ -10,8 +10,7 @@ SOURCE_FILE
PATH_SEGMENT PATH_SEGMENT
NAME_REF NAME_REF
IDENT "a" IDENT "a"
ERROR SEMICOLON ";"
SEMICOLON ";"
WHITESPACE "\n" WHITESPACE "\n"
USE USE
USE_KW "use" USE_KW "use"
@ -44,7 +43,4 @@ SOURCE_FILE
L_CURLY "{" L_CURLY "{"
R_CURLY "}" R_CURLY "}"
WHITESPACE "\n" WHITESPACE "\n"
error 6: expected COMMA error 6: expected R_CURLY
error 6: expected one of `*`, `::`, `{`, `self`, `super` or an identifier
error 7: expected R_CURLY
error 7: expected SEMICOLON