From f275d42be3c2315a111247e0bace1bf31b33e04e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 5 Mar 2024 07:34:34 -0800 Subject: [PATCH] Fix color test --- color_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/color_test.go b/color_test.go index cdf2532..5169219 100644 --- a/color_test.go +++ b/color_test.go @@ -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 { @@ -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) } }