renames hashKind to Kind on unit test

This commit is contained in:
Gustavo Brunoro 2017-11-16 04:01:38 -02:00 committed by Dong-hee Na
parent 40b64eda79
commit 139dd89622

View File

@ -12,15 +12,15 @@ import (
func TestNewImageHash(t *testing.T) { func TestNewImageHash(t *testing.T) {
for _, tt := range []struct { for _, tt := range []struct {
datas [][]uint8 datas [][]uint8
hash1 hashKind hash1 Kind
hash2 hashKind hash2 Kind
distance int distance int
err error err error
}{ }{
{[][]uint8{{1, 0, 1, 1}, {0, 0, 0, 0}}, Unknown, Unknown, 3, nil}, {[][]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, 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, 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] data1 := tt.datas[0]
data2 := tt.datas[1] data2 := tt.datas[1]