From 0a8d2996dcb3cd3ebf55b783b08667fa3740433b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 21 Oct 2016 19:35:59 +0900 Subject: Set foreground color without affecting background Close #712 --- src/options_test.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/options_test.go') diff --git a/src/options_test.go b/src/options_test.go index cc4d07c5..60136173 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -299,20 +299,14 @@ func TestColorSpec(t *testing.T) { } customized.Fg = curses.Dark256.Fg customized.Bg = curses.Dark256.Bg - if *curses.Dark256 == *customized { - t.Errorf("colors should now be equivalent") + if *curses.Dark256 != *customized { + t.Errorf("colors should now be equivalent: %v, %v", curses.Dark256, customized) } customized = parseTheme(theme, "fg:231,dark,bg:232") if customized.Fg != curses.Dark256.Fg || customized.Bg == curses.Dark256.Bg { t.Errorf("color not customized") } - if customized.UseDefault { - t.Errorf("not using default colors") - } - if !curses.Dark256.UseDefault { - t.Errorf("using default colors") - } } func TestParseNilTheme(t *testing.T) { -- cgit v1.2.3