summaryrefslogtreecommitdiffstats
path: root/src/util/util_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util_test.go')
-rw-r--r--src/util/util_test.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/util/util_test.go b/src/util/util_test.go
index 8aeaeac5..06cfd4f2 100644
--- a/src/util/util_test.go
+++ b/src/util/util_test.go
@@ -20,23 +20,3 @@ func TestContrain(t *testing.T) {
t.Error("Expected", 3)
}
}
-
-func TestTrimLen(t *testing.T) {
- check := func(str string, exp int) {
- trimmed := TrimLen([]rune(str))
- if trimmed != exp {
- t.Errorf("Invalid TrimLen result for '%s': %d (expected %d)",
- str, trimmed, exp)
- }
- }
- check("hello", 5)
- check("hello ", 5)
- check("hello ", 5)
- check(" hello", 5)
- check(" hello", 5)
- check(" hello ", 5)
- check(" hello ", 5)
- check("h o", 5)
- check(" h o ", 5)
- check(" ", 0)
-}