1package textoutput 2 3import "testing" 4 5func ExamplePrintln() { 6 o := NewTextOutput(true, true) 7 o.Println("hello") 8 // Output: 9 // hello 10} 11 12//func TestColorOn(t *testing.T) { 13// o := NewTextOutput(true, true) 14// a := o.ColorOn(1, 36) + "x" + o.ColorOff() 15// b := o.Cyan("x") 16// if a != b { 17// t.Fatal(a + " != " + b) 18// } 19//} 20 21func TestTags(t *testing.T) { 22 o := NewTextOutput(true, true) 23 a := o.LightTags("<blue>hi</blue>") 24 b := o.LightBlue("hi") 25 if a != b { 26 t.Fatal(a + " != " + b) 27 } 28} 29