~dricottone/image2ascii

2ab4735722b7c8ac4c4bf8655b3203c8070ec2cc — 秦世成 6 years ago fc38739
Fixed the golint issue
1 files changed, 2 insertions(+), 2 deletions(-)

M convert/convert_test.go
M convert/convert_test.go => convert/convert_test.go +2 -2
@@ 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)
			}