diff options
Diffstat (limited to 'src/pkg/strings/strings_test.go')
-rw-r--r-- | src/pkg/strings/strings_test.go | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/pkg/strings/strings_test.go b/src/pkg/strings/strings_test.go index cdf3437c3..f7aa4dbae 100644 --- a/src/pkg/strings/strings_test.go +++ b/src/pkg/strings/strings_test.go @@ -74,13 +74,9 @@ func runIndexTests(t *testing.T, f func(s, sep string) int, funcName string, tes } } -func TestIndex(t *testing.T) { - runIndexTests(t, Index, "Index", indexTests); -} +func TestIndex(t *testing.T) { runIndexTests(t, Index, "Index", indexTests) } -func TestLastIndex(t *testing.T) { - runIndexTests(t, LastIndex, "LastIndex", lastIndexTests); -} +func TestLastIndex(t *testing.T) { runIndexTests(t, LastIndex, "LastIndex", lastIndexTests) } type ExplodeTest struct { @@ -249,17 +245,11 @@ func TestMap(t *testing.T) { } } -func TestToUpper(t *testing.T) { - runStringTests(t, ToUpper, "ToUpper", upperTests); -} +func TestToUpper(t *testing.T) { runStringTests(t, ToUpper, "ToUpper", upperTests) } -func TestToLower(t *testing.T) { - runStringTests(t, ToLower, "ToLower", lowerTests); -} +func TestToLower(t *testing.T) { runStringTests(t, ToLower, "ToLower", lowerTests) } -func TestTrimSpace(t *testing.T) { - runStringTests(t, TrimSpace, "TrimSpace", trimSpaceTests); -} +func TestTrimSpace(t *testing.T) { runStringTests(t, TrimSpace, "TrimSpace", trimSpaceTests) } func equal(m string, s1, s2 string, t *testing.T) bool { if s1 == s2 { |