From c82c48496bbe78f88396b8634a04fef1c6798476 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 16 Jan 2019 01:21:18 +0100 Subject: ... --- internal/hash/hash_func_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/hash/hash_func_test.go') 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) } }) } -- cgit v1.2.3