Example #1
0
func Test_Red_2(t *testing.T) {
	expected := "polru"
	actual := Color.Red("polru", false)
	if actual != expected {
		t.Errorf("Test failed, expected: '%s', got: '%s'", expected, actual)
	}
}
Example #2
0
func Test_Red_1(t *testing.T) {
	expected := "\x1b[31mpolru\x1b[39;49m"
	actual := Color.Red("polru", true)
	if actual != expected {
		t.Errorf("Test failed, expected: '%s', got: '%s'", expected, actual)
	}
}