diff options
| author | Russ Cox <rsc@golang.org> | 2009-01-20 14:40:40 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-01-20 14:40:40 -0800 |
| commit | 4ae0ed29a283c16d1c83ef704c4d75170c3801e6 (patch) | |
| tree | f8305b165ee5ff41e9ef2b0f76e26f7ab3ece269 /src/lib/utf8_test.go | |
| parent | 3986ef877ccd4db750b5050e318dff78f7e55d19 (diff) | |
| download | golang-4ae0ed29a283c16d1c83ef704c4d75170c3801e6.tar.gz | |
delete export
TBR=r
OCL=23121
CL=23127
Diffstat (limited to 'src/lib/utf8_test.go')
| -rw-r--r-- | src/lib/utf8_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/utf8_test.go b/src/lib/utf8_test.go index 0456649fd..2cb15889e 100644 --- a/src/lib/utf8_test.go +++ b/src/lib/utf8_test.go @@ -11,7 +11,7 @@ import ( "utf8"; ) -export type Utf8Map struct { +type Utf8Map struct { rune int; str string; } @@ -53,7 +53,7 @@ func bytes(s string) []byte { return b[0:len(s)]; } -export func TestFullRune(t *testing.T) { +func TestFullRune(t *testing.T) { for i := 0; i < len(utf8map); i++ { m := utf8map[i]; b := bytes(m.str); @@ -87,7 +87,7 @@ func equalBytes(a, b []byte) bool { return true; } -export func TestEncodeRune(t *testing.T) { +func TestEncodeRune(t *testing.T) { for i := 0; i < len(utf8map); i++ { m := utf8map[i]; b := bytes(m.str); @@ -100,7 +100,7 @@ export func TestEncodeRune(t *testing.T) { } } -export func TestDecodeRune(t *testing.T) { +func TestDecodeRune(t *testing.T) { for i := 0; i < len(utf8map); i++ { m := utf8map[i]; b := bytes(m.str); @@ -158,7 +158,7 @@ export func TestDecodeRune(t *testing.T) { } } -export type RuneCountTest struct { +type RuneCountTest struct { in string; out int; } @@ -168,7 +168,7 @@ var runecounttests = []RuneCountTest { RuneCountTest{ "1,2,3,4", 7 }, RuneCountTest{ "\xe2\x00", 2 }, } -export func TestRuneCount(t *testing.T) { +func TestRuneCount(t *testing.T) { for i := 0; i < len(runecounttests); i++ { tt := runecounttests[i]; if out := utf8.RuneCountInString(tt.in, 0, len(tt.in)); out != tt.out { |
