Skip to content

Commit 561f044

Browse files
author
Daniele Conventi
authored
Merge pull request #117 from tockins/dev
Fixed style test (high contrast color).
2 parents 015f68e + d900beb commit 561f044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

style_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestStyle_Regular(t *testing.T) {
1414
input[i] = s
1515
}
1616
result := red.regular(input)
17-
c := color.New(color.FgRed).SprintFunc()
17+
c := color.New(color.FgHiRed).SprintFunc()
1818
expected := fmt.Sprint(c(input))
1919
if !bytes.Equal([]byte(result), []byte(expected)) {
2020
t.Error("Expected:", expected, "instead", result)
@@ -28,7 +28,7 @@ func TestStyle_Bold(t *testing.T) {
2828
input[i] = s
2929
}
3030
result := red.bold(input)
31-
c := color.New(color.FgRed, color.Bold).SprintFunc()
31+
c := color.New(color.FgHiRed, color.Bold).SprintFunc()
3232
expected := fmt.Sprint(c(input))
3333
if !bytes.Equal([]byte(result), []byte(expected)) {
3434
t.Error("Expected:", expected, "instead", result)

0 commit comments

Comments
 (0)