1 package rendezvous 2 3 import ( 4 "hash/fnv" 5 "testing" 6 ) 7 8 func hashString(s string) uint64 { 9 h := fnv.New64a() 10 h.Write([]byte(s)) 11 return h.Sum64() 12 } 13 14 func TestEmpty(t *testing.T) { 15 r := New([]string{}, hashString) 16 r.Lookup("hello") 17 18 } 19