master
Vitali Fedulov 2021-10-26 12:55:25 +02:00
parent b3659f6a64
commit a4e3ee6a57
1 changed files with 2 additions and 2 deletions

View File

@ -14,13 +14,13 @@ func TestFnva64(t *testing.T) {
} }
} }
func TestHashSet(t *testing.T) { func TestHashes64(t *testing.T) {
tree := [][]int{ tree := [][]int{
{0, 0, 7, 3, 0, 0, 9}, {0, 0, 7, 3, 0, 0, 9},
{1, 0, 7, 3, 0, 0, 9}, {1, 0, 7, 3, 0, 0, 9},
{0, 0, 8, 3, 0, 0, 9}, {0, 0, 8, 3, 0, 0, 9},
{1, 0, 8, 3, 0, 0, 9}} {1, 0, 8, 3, 0, 0, 9}}
hs := HashSet(tree, Fnva64) hs := Hashes64(tree, Fnva64)
want := []uint64{ want := []uint64{
14647827280143437043, 14647827280143437043,
17530493565529410009, 17530493565529410009,