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