func TestFaint(t *testing.T) {

	// case: apply colorization
	conf := config.Config{Colorize: true}
	want := "\033[2mfoo\033[0m"
	got := Faint("foo", conf)
	if want != got {
		t.Errorf("failed to faint: want: %s, got: %s", want, got)
	}

	// case: do not apply colorization
	conf.Colorize = false
	want = "foo"
	got = Faint("foo", conf)
	if want != got {
		t.Errorf("failed to faint: want: %s, got: %s", want, got)
	}
}
// TestFaint asserts that Faint applies faint formatting
TestFaint asserts that Faint applies faint formatting
// TestFaint asserts that Faint applies faint formatting
func TestFaint(t *testing.T) {
	conf := config.Config{Colorize: true}
	want := "\033[2mfoo\033[0m"
	got := Faint("foo", conf)
	if want != got {
		t.Errorf("failed to faint: want: %s, got: %s", want, got)
	}
	conf.Colorize = false
	want = "foo"
	got = Faint("foo", conf)
	if want != got {
		t.Errorf("failed to faint: want: %s, got: %s", want, got)
	}
}
func TestFaint ( t * testing . T ) { conf := config . Config { Colorize : true } want := " \033 \033 " got := Faint ( " " , conf ) if want != got { t . Errorf ( " " , want , got ) } conf . Colorize = false want = " " got = Faint ( " " , conf ) if want != got { t . Errorf ( " " , want , got ) } }
TestFaint asserts that Faint applies faint formatting
TestFaint asserts that Faint applies faint formatting
// case: apply colorization // case: do not apply colorization