示例#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)
	}
}
示例#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)
	}
}