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]