From 2ab4735722b7c8ac4c4bf8655b3203c8070ec2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E4=B8=96=E6=88=90?= Date: Tue, 6 Nov 2018 09:55:56 +0800 Subject: [PATCH] Fixed the golint issue --- convert/convert_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert/convert_test.go b/convert/convert_test.go index 9951caa..739b21b 100644 --- a/convert/convert_test.go +++ b/convert/convert_test.go @@ -104,7 +104,7 @@ func TestImageFile2CharPixelMatrix(t *testing.T) { height int }{ {"testdata/3x3_black.png", 3, 3}, - {"testdata/3x3_white.png", 3,3}, + {"testdata/3x3_white.png", 3, 3}, {"testdata/8x3_multi_colors.png", 8, 3}, } @@ -115,7 +115,7 @@ func TestImageFile2CharPixelMatrix(t *testing.T) { convertOptions.Colored = false matrix := converter.ImageFile2CharPixelMatrix(tt.imageFilename, &convertOptions) - if len(matrix) != tt.height|| len(matrix[0]) != tt.width{ + if len(matrix) != tt.height || len(matrix[0]) != tt.width{ t.Errorf("image %s convert expected to %+v, %+v, but get %+v", tt.imageFilename, tt.width, tt.height, matrix) } -- 2.45.2