Merge pull request #117 from tockins/dev
Fixed style test (high contrast color).
This commit is contained in:
commit
561f044850
|
@ -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