Merge pull request #117 from tockins/dev

Fixed style test (high contrast color).
This commit is contained in:
Daniele Conventi 2017-11-08 16:53:49 +01:00 committed by GitHub
commit 561f044850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)