summaryrefslogtreecommitdiffstats
path: root/dependencies/pkg/mod/github.com/dgryski/go-rendezvous@v0.0.0-20200823014737-9f7001d12a5f/rdv_test.go
blob: f9c5583c70a791240e30ca5ec88e0cfcf70cd825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package rendezvous

import (
	"hash/fnv"
	"testing"
)

func hashString(s string) uint64 {
	h := fnv.New64a()
	h.Write([]byte(s))
	return h.Sum64()
}

func TestEmpty(t *testing.T) {
	r := New([]string{}, hashString)
	r.Lookup("hello")

}