aboutsummaryrefslogtreecommitdiff
path: root/internal/hash/hash_func_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-01-16 01:21:18 +0100
committerDimitri Sokolyuk <demon@dim13.org>2019-01-16 01:22:18 +0100
commitc82c48496bbe78f88396b8634a04fef1c6798476 (patch)
tree42483d7484b41af8f18006e7aff45bf65eb4ffe2 /internal/hash/hash_func_test.go
parent1149102c404c8d92e59a9dbcf41568cfe15acb70 (diff)
...
Diffstat (limited to 'internal/hash/hash_func_test.go')
-rw-r--r--internal/hash/hash_func_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/hash/hash_func_test.go b/internal/hash/hash_func_test.go
index f2bb0d1..458b306 100644
--- a/internal/hash/hash_func_test.go
+++ b/internal/hash/hash_func_test.go
@@ -5,7 +5,7 @@ import "testing"
func TestDefaultHash(t *testing.T) {
testCases := []struct {
key string
- hash uint32
+ want uint32
}{
{"", 0},
{"A", 65},
@@ -20,9 +20,9 @@ func TestDefaultHash(t *testing.T) {
}
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)
+ got := defaultHash([]byte(tc.key))
+ if got != tc.want {
+ t.Errorf("got %v, want %v", got, tc.want)
}
})
}