Fixed style test (high contrast color).

This commit is contained in:
Daniele Conventi 2017-11-08 16:52:57 +01:00
parent 21741ce2d6
commit d900beb599
1 changed files with 2 additions and 2 deletions

View File

@ -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)