From 67bce56667670c9a0d58aaf7c9cff0e18dfb64c0 Mon Sep 17 00:00:00 2001 From: qeesung <1245712564@qq.com> Date: Fri, 26 Oct 2018 01:07:17 +0800 Subject: [PATCH] fixed test --- convert/convert_test.go | 2 +- convert/resize_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/convert/convert_test.go b/convert/convert_test.go index dbb620c..23c5ead 100644 --- a/convert/convert_test.go +++ b/convert/convert_test.go @@ -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 diff --git a/convert/resize_test.go b/convert/resize_test.go index 9227a15..3c8ae55 100644 --- a/convert/resize_test.go +++ b/convert/resize_test.go @@ -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 -- 2.45.2