diff options
author | Russ Cox <rsc@golang.org> | 2008-12-04 21:00:34 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-12-04 21:00:34 -0800 |
commit | 966045873e54da1fe6f38d92f5b7850b8913c97b (patch) | |
tree | 40924d98cce298fa84801b75f01186399c0ef609 /src/lib/strings_test.go | |
parent | 1fe7cdb6b5aef2617326746a4f01c8cd6476464f (diff) | |
download | golang-966045873e54da1fe6f38d92f5b7850b8913c97b.tar.gz |
strings.utflen -> utf8.RuneCount, RuneCountInString
R=r
DELTA=94 (52 added, 33 deleted, 9 changed)
OCL=20547
CL=20552
Diffstat (limited to 'src/lib/strings_test.go')
-rw-r--r-- | src/lib/strings_test.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lib/strings_test.go b/src/lib/strings_test.go index a7b63738b..50ad30cc3 100644 --- a/src/lib/strings_test.go +++ b/src/lib/strings_test.go @@ -79,21 +79,3 @@ export func TestSplit(t *testing.T) { } } -// TODO: utflen shouldn't even be in strings. -type UtflenTest struct { - in string; - out int; -} -var utflentests = []UtflenTest { - UtflenTest{ abcd, 4 }, - UtflenTest{ faces, 3 }, - UtflenTest{ commas, 7 }, -} -export func TestUtflen(t *testing.T) { - for i := 0; i < len(utflentests); i++ { - tt := utflentests[i]; - if out := strings.utflen(tt.in); out != tt.out { - t.Errorf("utflen(%q) = %d, want %d", tt.in, out, tt.out); - } - } -} |