diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-02-25 15:34:05 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-02-26 11:42:03 -0800 |
| commit | eff1716b6c7800e6876d95d900b472fe351b0355 (patch) | |
| tree | 60755554c99fc4b792832f5488a7b0c2c765f6e2 /src | |
| parent | 512bb9ad3e3765f4137dc99378036db7617875c4 (diff) | |
| download | zig-eff1716b6c7800e6876d95d900b472fe351b0355.tar.gz zig-eff1716b6c7800e6876d95d900b472fe351b0355.zip | |
Package: update unit tests to new API
Diffstat (limited to 'src')
| -rw-r--r-- | src/Package.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Package.zig b/src/Package.zig index 6d370e9855..c4bb8aa46a 100644 --- a/src/Package.zig +++ b/src/Package.zig @@ -173,8 +173,8 @@ test Hash { 0xc7, 0xf5, 0x71, 0xb7, 0xb4, 0xe7, 0x6f, 0x3c, 0xdb, 0x87, 0x7a, 0x7f, 0xdd, 0xf9, 0x77, 0x87, 0x9d, 0xd3, 0x86, 0xfa, 0x73, 0x57, 0x9a, 0xf7, 0x9d, 0x1e, 0xdb, 0x8f, 0x3a, 0xd9, 0xbd, 0x9f, }; - const result: Hash = .init(example_digest, "nasm", "2.16.1-2", 10 * 1024 * 1024); - try std.testing.expectEqualStrings("nasm-2.16.1-2-AACgAMf1cbe0", result.toSlice()); + const result: Hash = .init(example_digest, "nasm", "2.16.1-2", 0xcafe, 10 * 1024 * 1024); + try std.testing.expectEqualStrings("nasm-2.16.1-2-_soAAKAAx_Vxt7Tnbzzbh3p_3fl3h53ThvpzV5r3", result.toSlice()); } test { |
