Fix tests
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package termext
|
||||
|
||||
import (
|
||||
"gogs.mikescher.com/BlackForestBytes/goext/tst"
|
||||
"math/rand"
|
||||
"testing"
|
||||
)
|
||||
@@ -32,9 +33,3 @@ func TestColor(t *testing.T) {
|
||||
tst.AssertEqual(t, CleanString(Gray("test")), "test")
|
||||
tst.AssertEqual(t, CleanString(White("test")), "test")
|
||||
}
|
||||
|
||||
func tst.AssertEqual(t *testing.T, actual string, expected string) {
|
||||
if actual != expected {
|
||||
t.Errorf("values differ: Actual: '%v', Expected: '%v'", actual, expected)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user