mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
Package: update unit tests to new API
This commit is contained in:
parent
512bb9ad3e
commit
eff1716b6c
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user