diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-02-14 15:23:45 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-02-14 15:23:45 +0200 |
| commit | b85c0d6a472255362f692ddbc8afd14c2da4a996 (patch) | |
| tree | f42ac4ca50de7bde25827a75832a348c80a27f70 /lib/std | |
| parent | ee69a4b45f67e929fe5780ab6bf44360f6511d26 (diff) | |
| download | zig-b85c0d6a472255362f692ddbc8afd14c2da4a996.tar.gz zig-b85c0d6a472255362f692ddbc8afd14c2da4a996.zip | |
std: fix tests that were not run due to refAllDecls regression
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/zig/parser_test.zig | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/std/zig/parser_test.zig b/lib/std/zig/parser_test.zig index a0cc11ce4b..5eca272b62 100644 --- a/lib/std/zig/parser_test.zig +++ b/lib/std/zig/parser_test.zig @@ -233,7 +233,7 @@ test "zig fmt: eof after missing comma" { try testError( \\foo() , &[_]Error{ - .expected_token, + .expected_comma_after_field, }); } @@ -5074,8 +5074,8 @@ test "recovery: missing comma" { \\ } \\} , &[_]Error{ - .expected_token, - .expected_token, + .expected_comma_after_switch_prong, + .expected_comma_after_switch_prong, .invalid_token, }); } @@ -5156,10 +5156,10 @@ test "recovery: missing semicolon" { \\ @foo \\} , &[_]Error{ - .expected_token, - .expected_token, + .expected_semi_after_stmt, + .expected_semi_after_stmt, .expected_param_list, - .expected_token, + .expected_semi_after_stmt, }); } @@ -5174,9 +5174,9 @@ test "recovery: invalid container members" { \\} , &[_]Error{ .expected_expr, - .expected_token, + .expected_comma_after_field, .expected_container_members, - .expected_token, + .expected_semi_after_stmt, }); } @@ -5201,7 +5201,7 @@ test "recovery: mismatched bracket at top level" { \\ arr: 128]?G \\}; , &[_]Error{ - .expected_token, + .expected_comma_after_field, }); } @@ -5301,9 +5301,9 @@ test "recovery: missing comma in params" { \\fn bar(a: i32, b: i32 c) void { } \\ , &[_]Error{ - .expected_token, - .expected_token, - .expected_token, + .expected_comma_after_param, + .expected_comma_after_param, + .expected_comma_after_param, }); } |
