diff options
author | Russ Cox <rsc@golang.org> | 2009-01-16 12:47:24 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-16 12:47:24 -0800 |
commit | 1de76e1401a9e35d7133e7c10fbd85f7b0e7be56 (patch) | |
tree | 5190044ba6aa44f1eed79cfc98727a1456c0529b /src/lib/strings_test.go | |
parent | e260cd27aeea1ebd7ffef21b19045dbb6829aa0f (diff) | |
download | golang-1de76e1401a9e35d7133e7c10fbd85f7b0e7be56.tar.gz |
casify misc
R=r
DELTA=247 (20 added, 50 deleted, 177 changed)
OCL=22951
CL=22955
Diffstat (limited to 'src/lib/strings_test.go')
-rw-r--r-- | src/lib/strings_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/strings_test.go b/src/lib/strings_test.go index 83a4c6954..3bece666f 100644 --- a/src/lib/strings_test.go +++ b/src/lib/strings_test.go @@ -26,7 +26,7 @@ var faces = "☺☻☹"; var commas = "1,2,3,4"; var dots = "1....2....3....4"; -type ExplodeTest struct { +export type ExplodeTest struct { s string; a []string; } @@ -37,19 +37,19 @@ var explodetests = []ExplodeTest { export func TestExplode(t *testing.T) { for i := 0; i < len(explodetests); i++ { tt := explodetests[i]; - a := explode(tt.s); + a := Explode(tt.s); if !eq(a, tt.a) { t.Errorf("Explode(%q) = %v; want %v", tt.s, a, tt.a); continue; } - s := join(a, ""); + s := Join(a, ""); if s != tt.s { t.Errorf(`Join(Explode(%q), "") = %q`, tt.s, s); } } } -type SplitTest struct { +export type SplitTest struct { s string; sep string; a []string; @@ -67,12 +67,12 @@ var splittests = []SplitTest { export func TestSplit(t *testing.T) { for i := 0; i < len(splittests); i++ { tt := splittests[i]; - a := split(tt.s, tt.sep); + a := Split(tt.s, tt.sep); if !eq(a, tt.a) { t.Errorf("Split(%q, %q) = %v; want %v", tt.s, tt.sep, a, tt.a); continue; } - s := join(a, tt.sep); + s := Join(a, tt.sep); if s != tt.s { t.Errorf("Join(Split(%q, %q), %q) = %q", tt.s, tt.sep, tt.sep, s); } |