aboutsummaryrefslogtreecommitdiff
path: root/hash/hash_func_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-01-15 23:40:19 +0100
committerDimitri Sokolyuk <demon@dim13.org>2019-01-15 23:40:19 +0100
commit7550eb651c14a35c42d3aedb11daa49e6fc2f63e (patch)
tree7ce9469859a75eb9e26fd29a7ae5bb5103d0b3b6 /hash/hash_func_test.go
parent4aaf55814f7ede26a1035e4837ce7aeeeb11d581 (diff)
adjust interface
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)
- }
- })
- }
-}