From 139dd89622227dcbcc13f7982bec337e413166fc Mon Sep 17 00:00:00 2001 From: Gustavo Brunoro Date: Thu, 16 Nov 2017 04:01:38 -0200 Subject: [PATCH] renames hashKind to Kind on unit test --- imagehash_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imagehash_test.go b/imagehash_test.go index 7cf2538..77021a7 100644 --- a/imagehash_test.go +++ b/imagehash_test.go @@ -12,15 +12,15 @@ import ( func TestNewImageHash(t *testing.T) { for _, tt := range []struct { datas [][]uint8 - hash1 hashKind - hash2 hashKind + hash1 Kind + hash2 Kind distance int err error }{ {[][]uint8{{1, 0, 1, 1}, {0, 0, 0, 0}}, Unknown, Unknown, 3, nil}, {[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 0}}, Unknown, Unknown, 0, nil}, {[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 1}}, Unknown, Unknown, 1, nil}, - {[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 1}}, Unknown, AHash, -1, errors.New("Image hashes's kind should be identical.")}, + {[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 1}}, Unknown, AHash, -1, errors.New("Image hashes's kind should be identical")}, } { data1 := tt.datas[0] data2 := tt.datas[1]