zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5bbcdc8d5f01580ebd7af20285b5250163d1caef (tree)
parent 93d3d0971301ced0a9aa2c03981151eb60556602
Author: Motiejus <motiejus@jakstys.lt>
Date:   Sun,  1 Mar 2026 06:37:36 +0000

sema: bump num_sema_passing to 97 (all sema unit tests)

Fix branch quota in sema_test.zig: the multiplier was too low (2x)
for paths with ~30 characters each. Increase to 100x so all 97 sema
unit tests can be tested. All 97 were already passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Diffstat:
Mstage0/corpus.zig | 2+-
Mstage0/sema_test.zig | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/stage0/corpus.zig b/stage0/corpus.zig @@ -202,7 +202,7 @@ pub const files = [_][]const u8{ "lib/std/math/expo2.zig", // 995 }; -pub const num_sema_passing: usize = 5; +pub const num_sema_passing: usize = 97; pub const sema_unit_tests = [_][]const u8{ "stage0/sema_tests/empty.zig", diff --git a/stage0/sema_test.zig b/stage0/sema_test.zig @@ -879,7 +879,7 @@ fn airCompareOne(name: []const u8, a: PrecomputedFunc, b: PrecomputedFunc, zig_i const corpus = @import("corpus.zig"); test "sema air: unit tests" { - @setEvalBranchQuota(corpus.sema_unit_tests.len * 2); + @setEvalBranchQuota(corpus.sema_unit_tests.len * 100); inline for (corpus.sema_unit_tests[0..corpus.num_sema_passing]) |path| { const source: [:0]const u8 = @embedFile("../" ++ path);