~dricottone/image2ascii

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

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


@@ 186,9 186,4 @@ func ExampleImageConverter_ImageFile2ASCIIString() {
	convertOptions.Colored = false
	asciiString := converter.ImageFile2ASCIIString(imageFilename, &convertOptions)
	fmt.Println(asciiString)
	/* Output:
@@@
@@@
@@@
	 */
}