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

View file

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