Fixed style test (high contrast color).
This commit is contained in:
parent
21741ce2d6
commit
d900beb599
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user