Skip to content

Commit

Permalink
tests: fix broken tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Nov 6, 2024
1 parent 8ad7919 commit 086ec50
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions parser/src/parser/tests/testdata/expr-error-1.ast
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ERRORS:
- SyntaxError { message: "expecting identifier or expression, found `}`", span: Span(37..38) }
- SyntaxError { message: "expecting identifier or expression, found `+`", span: Span(71..72) }
- SyntaxError { message: "expecting identifier or expression, found `==`", span: Span(115..117) }
- SyntaxError { message: "expecting expression, found `}`", span: Span(37..38) }
- SyntaxError { message: "expecting expression, found `+`", span: Span(71..72) }
- SyntaxError { message: "expecting expression, found `==`", span: Span(115..117) }
- SyntaxError { message: "expecting operator, `of`, expression or `}`, found `(`", span: Span(162..163) }
- SyntaxError { message: "expecting `[`, `.`, operator or `}`, found `in`", span: Span(238..240) }
6 changes: 3 additions & 3 deletions parser/src/parser/tests/testdata/expr-error-1.cst
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ SOURCE_FILE@0..251
NEWLINE@250..251 "\n"

ERRORS:
- [37..38]: expecting identifier or expression, found `}`
- [71..72]: expecting identifier or expression, found `+`
- [115..117]: expecting identifier or expression, found `==`
- [37..38]: expecting expression, found `}`
- [71..72]: expecting expression, found `+`
- [115..117]: expecting expression, found `==`
- [162..163]: expecting operator, `of`, expression or `}`, found `(`
- [238..240]: expecting `[`, `.`, operator or `}`, found `in`
2 changes: 1 addition & 1 deletion parser/src/parser/tests/testdata/for-error-1.ast
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ERRORS:
- SyntaxError { message: "expecting identifier or expression, found `of`", span: Span(77..79) }
- SyntaxError { message: "expecting expression, found `of`", span: Span(77..79) }
2 changes: 1 addition & 1 deletion parser/src/parser/tests/testdata/for-error-1.cst
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ SOURCE_FILE@0..94
R_BRACE@93..94 "}"

ERRORS:
- [77..79]: expecting identifier or expression, found `of`
- [77..79]: expecting expression, found `of`
2 changes: 1 addition & 1 deletion parser/src/parser/tests/testdata/with-error-2.ast
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ERRORS:
- SyntaxError { message: "expecting expression, `for`, `all`, `none`, `any`, identifier or `with`, found `)`", span: Span(62..63) }
- SyntaxError { message: "expecting expression, `for`, `all`, `none`, `any` or `with`, found `)`", span: Span(62..63) }
2 changes: 1 addition & 1 deletion parser/src/parser/tests/testdata/with-error-2.cst
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ SOURCE_FILE@0..65
R_BRACE@64..65 "}"

ERRORS:
- [62..63]: expecting expression, `for`, `all`, `none`, `any`, identifier or `with`, found `)`
- [62..63]: expecting expression, `for`, `all`, `none`, `any` or `with`, found `)`

0 comments on commit 086ec50

Please # to comment.