Esempio n. 1
0
func Test_Black_1(t *testing.T) {
	expected := "\x1b[30mpolru\x1b[39;49m"
	actual := Color.Black("polru", true)
	if actual != expected {
		t.Errorf("Test failed, expected: '%s', got: '%s'", expected, actual)
	}
}
Esempio n. 2
0
func Test_Black_2(t *testing.T) {
	expected := "polru"
	actual := Color.Black("polru", false)
	if actual != expected {
		t.Errorf("Test failed, expected: '%s', got: '%s'", expected, actual)
	}
}