Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › hash › wyhash › vectors Private Constant vectors Doc Source Private Constant std.hash.wyhash.vectors
const vectors = [_ ]TestVector File hash/wyhash.zig: 209
209
210
211
212
213
214
215
216
217 const vectors = [_ ]TestVector {
.{ .seed = 0 , .expected = 0x409638ee2bde459 , .input = "" },
.{ .seed = 1 , .expected = 0xa8412d091b5fe0a9 , .input = "a" },
.{ .seed = 2 , .expected = 0x32dd92e4b2915153 , .input = "abc" },
.{ .seed = 3 , .expected = 0x8619124089a3a16b , .input = "message digest" },
.{ .seed = 4 , .expected = 0x7a43afb61d7f5f40 , .input = "abcdefghijklmnopqrstuvwxyz" },
.{ .seed = 5 , .expected = 0xff42329b90e50d58 , .input = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" },
.{ .seed = 6 , .expected = 0xc39cab13b115aad3 , .input = "12345678901234567890123456789012345678901234567890123456789012345678901234567890" },
}
Run https://github.com/wangyi-fudan/wyhash/blob/77e50f267fbc7b8e2d09f2d455219adb70ad4749/test_vector.cpp directly.