commit 7b7142d6ee6c31bf6599ad6a770db07153eda808 (tree)
parent 1ed7bfb82457987954c3f2dec740f972a6226e30
Author: Motiejus Jakštys <motiejus.jakstys@chronosphere.io>
Date: Fri, 13 Feb 2026 05:16:10 +0000
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>
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/astgen_test.zig b/astgen_test.zig
@@ -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 };";