From 2904452e9755b471732cbd17631946a932e951f7 Mon Sep 17 00:00:00 2001 From: inhere Date: Tue, 3 Nov 2020 00:28:36 +0800 Subject: [PATCH] fix unit tests error --- color_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/color_test.go b/color_test.go index ab0aa2b..3e42dc9 100644 --- a/color_test.go +++ b/color_test.go @@ -375,6 +375,8 @@ func TestColor256(t *testing.T) { func TestStyle256(t *testing.T) { is := assert.New(t) + + ForceColor() s := S256(192, 38) s.Println("style 256 colored text") is.Equal("\x1b[38;5;192;48;5;38m MSG \x1b[0m", s.Sprint(" MSG ")) @@ -565,6 +567,7 @@ func TestHexToRGB(t *testing.T) { func TestRGBStyle(t *testing.T) { is := assert.New(t) + ForceColor() fg := RGB(20, 144, 234) bg := RGB(234, 78, 23)