Port Zig's std.hash.Wyhash to C (same secret constants, CONDOM=0 mum) and replace ipHashCombine (boost golden ratio) with Wyhash in ipHashKey. This aligns the C InternPool's hashing strategy with upstream Zig, which uses Wyhash for all key hashing including NamespaceType keys. Tests verify C and Zig Wyhash produce identical results for all standard test vectors, streaming in various chunk sizes, autoHash equivalence for u32/u64, and a large 8KB buffer. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9 lines
286 B
Zig
9 lines
286 B
Zig
test "zig0 test suite" {
|
|
_ = @import("stage0/tokenizer_test.zig");
|
|
_ = @import("stage0/parser_test.zig");
|
|
_ = @import("stage0/astgen_test.zig");
|
|
_ = @import("stage0/sema_test.zig");
|
|
_ = @import("stage0/stages_test.zig");
|
|
_ = @import("stage0/wyhash_test.zig");
|
|
}
|