aboutsummaryrefslogtreecommitdiff
path: root/hash/hash_func_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hash/hash_func_test.go')
-rw-r--r--hash/hash_func_test.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/hash/hash_func_test.go b/hash/hash_func_test.go
deleted file mode 100644
index 5ce39b4..0000000
--- a/hash/hash_func_test.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package hash
-
-import "testing"
-
-func TestDefaultHash(t *testing.T) {
- testCases := []struct {
- key string
- hash uint32
- }{
- {"", 0},
- {"A", 65},
- {"AA", 2210},
- {"AAA", 72995},
- {"AAAA", 2408900},
- {"AAAAA", 79493765},
- {"AAAAAA", 2623294310},
- {"AAAAAAA", 669366375},
- {"AAAAAAAA", 614253960},
- }
- for _, tc := range testCases {
- t.Run(tc.key, func(t *testing.T) {
- x := defaultHash([]byte(tc.key))
- if x != tc.hash {
- t.Errorf("got %v, want %v", x, tc.hash)
- }
- })
- }
-}