Parser test: Fix error message when encountering an error

This commit is contained in:
Laria 2021-12-18 16:09:41 +01:00
parent bde841120a
commit 1ba891282e

View file

@ -81,7 +81,7 @@ expect_expr(struct parser_test *pt, struct apfl_expr expected)
test_fatalf(pt->t, "Extected an expression but got EOF");
break;
case APFL_PARSE_ERROR:
test_failf(pt->t, "Got an error instead of an EOF");
test_failf(pt->t, "Got an error instead of an expression");
apfl_error_print(apfl_parser_get_error(pt->parser), stderr);
test_fatal(pt->t);
break;