Fix tests

This commit is contained in:
2023-08-14 16:32:39 +02:00
parent 202afc9068
commit a95053211c
5 changed files with 48 additions and 52 deletions

View File

@@ -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)
}
}