1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/hash/fnv1a/fnv1a_test.v
2020-02-05 10:00:14 +01:00

13 lines
217 B
V

import hash.fnv1a
fn test_fnv1a() {
$if windows {
return
}
a := 'apple'
b := fnv1a.sum64_string(a)
c := fnv1a.sum64(a.bytes())
assert b.hex() == '0xf74a62a458befdbf'
assert c.hex() == '0xf74a62a458befdbf'
}