commit fc8f27ebddfd4cc07105256d926cbee640e382f2 (tree)
parent 710686de5c00c814c15ef449ee32f54ec0433bd1
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date: Thu, 12 Feb 2026 20:23:55 +0000
astgen: enable corpus test for test_all.zig
test_all.zig is 5 lines of @import statements and already produces
matching ZIR. Enable it as a standalone corpus test while keeping
the full corpus test skipped.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/astgen_test.zig b/astgen_test.zig
@@ -848,6 +848,11 @@ fn corpusCheck(gpa: Allocator, name: []const u8, source: [:0]const u8) !void {
}
}
+test "astgen: corpus test_all.zig" {
+ const gpa = std.testing.allocator;
+ try corpusCheck(gpa, "test_all.zig", @embedFile("test_all.zig"));
+}
+
test "astgen: corpus" {
if (true) return error.SkipZigTest;
const gpa = std.testing.allocator;