mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Change all hash functions to have a common hash function.
This commit is contained in:
@@ -19,6 +19,6 @@ fn void test_fnv32a()
|
||||
assert ((uint)hash == want, "got: %d, want: %d", hash, want);
|
||||
|
||||
// encode
|
||||
uint encoded = fnv32a::encode(input);
|
||||
uint encoded = fnv32a::hash(input);
|
||||
assert (encoded == want, "got: %d, want: %d", encoded, want);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,6 @@ fn void test_fnv64a()
|
||||
assert ((ulong)hash == want, "got: %d, want: %d", hash, want);
|
||||
|
||||
// encode
|
||||
ulong encoded = fnv64a::encode(input);
|
||||
ulong encoded = fnv64a::hash(input);
|
||||
assert (encoded == want, "got: %d, want: %d", encoded, want);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user