aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/hash/fnv1a/fnv1a_test.v
blob: f775ab1b5a2f937f8be63e2a9f003d86bfbee0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import hash.fnv1a

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