~dricottone/image2ascii

67bce56667670c9a0d58aaf7c9cff0e18dfb64c0 — qeesung 6 years ago 83ef6f8
fixed test
2 files changed, 7 insertions(+), 7 deletions(-)

M convert/convert_test.go
M convert/resize_test.go
M convert/convert_test.go => convert/convert_test.go +1 -1
@@ 80,7 80,7 @@ func TestImageFile2ASCIIString(t *testing.T) {

	for _, tt := range imageTests {
		t.Run(tt.imageFilename, func(t *testing.T) {
			convertOptions := defaultOptions
			convertOptions := DefaultOptions
			convertOptions.FitScreen = false
			convertOptions.Colored = false


M convert/resize_test.go => convert/resize_test.go +6 -6
@@ 31,7 31,7 @@ func TestScaleImageWithFixedHeight(t *testing.T) {
	assertions.True(img != nil)
	assertions.True(err == nil)

	options := defaultOptions
	options := DefaultOptions
	options.Colored = false
	options.ExpectedHeight = 100



@@ 50,7 50,7 @@ func TestScaleImageWithFixedWidth(t *testing.T) {
	assertions.True(img != nil)
	assertions.True(err == nil)

	options := defaultOptions
	options := DefaultOptions
	options.Colored = false
	options.ExpectedWidth = 200



@@ 69,7 69,7 @@ func TestScaleImageWithFixedWidthHeight(t *testing.T) {
	assertions.True(img != nil)
	assertions.True(err == nil)

	options := defaultOptions
	options := DefaultOptions
	options.Colored = false
	options.ExpectedWidth = 200
	options.ExpectedHeight = 100


@@ 88,7 88,7 @@ func TestScaleImageByRatio(t *testing.T) {
	assertions.True(img != nil)
	assertions.True(err == nil)

	options := defaultOptions
	options := DefaultOptions
	options.Colored = false
	options.Ratio = 0.5



@@ 109,7 109,7 @@ func TestScaleToFitTerminalSize(t *testing.T) {
	assertions.True(img != nil)
	assertions.True(err == nil)

	options := defaultOptions
	options := DefaultOptions
	options.Colored = false
	options.FitScreen = true



@@ 151,7 151,7 @@ func ExampleScaleImage() {
		log.Fatal("open image file "+imageFilePath + " failed")
	}

	options := defaultOptions
	options := DefaultOptions
	options.Colored = false
	options.ExpectedWidth = 200
	options.ExpectedHeight = 100