From d900beb5993c83de6ac83a1a6487a0a7162d3ce3 Mon Sep 17 00:00:00 2001 From: Daniele Conventi Date: Wed, 8 Nov 2017 16:52:57 +0100 Subject: [PATCH] Fixed style test (high contrast color). --- style_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style_test.go b/style_test.go index 7f49352..b40be5c 100644 --- a/style_test.go +++ b/style_test.go @@ -14,7 +14,7 @@ func TestStyle_Regular(t *testing.T) { input[i] = s } result := red.regular(input) - c := color.New(color.FgRed).SprintFunc() + c := color.New(color.FgHiRed).SprintFunc() expected := fmt.Sprint(c(input)) if !bytes.Equal([]byte(result), []byte(expected)) { t.Error("Expected:", expected, "instead", result) @@ -28,7 +28,7 @@ func TestStyle_Bold(t *testing.T) { input[i] = s } result := red.bold(input) - c := color.New(color.FgRed, color.Bold).SprintFunc() + c := color.New(color.FgHiRed, color.Bold).SprintFunc() expected := fmt.Sprint(c(input)) if !bytes.Equal([]byte(result), []byte(expected)) { t.Error("Expected:", expected, "instead", result)