Skip to content

Commit

Permalink
Fix color test
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Mar 5, 2024
1 parent 81f6648 commit f275d42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions color_test.go
Expand Up @@ -86,7 +86,7 @@ func TestColorNameLookup(t *testing.T) {
}{
{"#FF0000", ColorRed, true},
{"black", ColorBlack, false},
{"orange", ColorOrange, false},
{"orange", ColorOrange, true},
{"door", ColorDefault, false},
}
for _, v := range values {
Expand All @@ -96,11 +96,11 @@ func TestColorNameLookup(t *testing.T) {
}
if v.rgb {
if c&ColorIsRGB == 0 {
t.Errorf("Color should have RGB")
t.Errorf("Color should have RGB: %v", v.name)
}
} else {
if c&ColorIsRGB != 0 {
t.Errorf("Named color should not be RGB")
t.Errorf("Named color should not be RGB: %v", v.name)
}
}

Expand Down

0 comments on commit f275d42

Please sign in to comment.