summaryrefslogtreecommitdiff
path: root/test/parser_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser_test.c')
-rw-r--r--test/parser_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parser_test.c b/test/parser_test.c
index f923c46..52437ce 100644
--- a/test/parser_test.c
+++ b/test/parser_test.c
@@ -208,7 +208,7 @@ test_parse_basic_syntax_errors(const MunitParameter params[], void *user_data_or
assert_parser_error("main(: i32 { return 42; }", "expected ')' but got ':'");
assert_parser_error("main() i32 { return 42; }", "expected ':' but got 'TOKEN_NAME'");
assert_parser_error("main(): { return 42; }", "expected 'TOKEN_NAME' but got '{'");
- assert_parser_error("main(): i32 return 42; }", "expected '{' but got 'TOKEN_NAME'");
+ assert_parser_error("main(): i32 return 42; }", "expected '{' but got 'return'");
assert_parser_error("main(): i32 { 42; }", "expected 'TOKEN_NAME' but got 'TOKEN_NUMBER'");
assert_parser_error("main(): i32 { return; }", "unexpected '; (;)' token");
assert_parser_error("main(): i32 { return 42;", "expected '}' but got end of file");