chkbit/util/strings_test.go
2024-08-16 16:00:48 +02:00

14 lines
218 B
Go

package util
import (
"testing"
)
func TestTrunc(t *testing.T) {
expected := "ab©def"
actual := LeftTruncate(expected+"ghijk", 6)
if expected != actual {
t.Error("expected:", expected, "actual:", actual)
}
}