Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kumachan-mis committed Oct 9, 2023
1 parent 48c78ab commit 6540418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/parser/test_expression_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void test_parse_modulo_assignment_expr_error(void) {
vector_push(input, new_ctoken(CTOKEN_PERCENT_EQUAL));
vector_push(input, new_ctoken(CTOKEN_EOF));

Error* expected = new_error("unexpected token %=");
Error* expected = new_error("unexpected token %%=");

run_expr_parser_error_test(input, NULL, expected);

Expand Down
2 changes: 2 additions & 0 deletions tests/parser/test_statement_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ void test_parse_for_stmt_error_expr(void) {
Error* expected = new_error("unexpected token ;");

run_stmt_parser_error_test(input, expected);

delete_error(expected);
}

void test_parse_for_stmt_error_expr_rparen(void) {
Expand Down

0 comments on commit 6540418

Please sign in to comment.