astgen: add skipped corpus tests for remaining files

Add corpus tests for tokenizer_test.zig and astgen_test.zig, skipped
pending fixes:
- tokenizer_test.zig: needs ref_coerced_ty result location (428 inst diff)
- astgen_test.zig: 1 missing dbg_stmt, extra_len mismatch (375 extra diff)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-13 05:16:10 +00:00
parent 20107f8e6c
commit a79a049884

View File

@@ -993,6 +993,18 @@ test "astgen: corpus test_all.zig" {
// try corpusCheck(gpa, "build.zig", @embedFile("build.zig"));
// }
test "astgen: corpus tokenizer_test.zig" {
if (true) return error.SkipZigTest; // TODO: needs ref_coerced_ty
const gpa = std.testing.allocator;
try corpusCheck(gpa, "tokenizer_test.zig", @embedFile("tokenizer_test.zig"));
}
test "astgen: corpus astgen_test.zig" {
if (true) return error.SkipZigTest; // TODO: 1 missing dbg_stmt, extra_len mismatch
const gpa = std.testing.allocator;
try corpusCheck(gpa, "astgen_test.zig", @embedFile("astgen_test.zig"));
}
test "astgen: enum decl" {
const gpa = std.testing.allocator;
const source: [:0]const u8 = "const E = enum { a, b, c };";