diff options
| author | Rob Pike <r@golang.org> | 2009-05-04 22:12:13 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-05-04 22:12:13 -0700 |
| commit | 7491bfa6b8d8ef3289cfa37db0365f1221203a50 (patch) | |
| tree | 540f90bfbe2deedff124fbd3e27d114a6b42393a /src/lib/utf8_test.go | |
| parent | f8944c3c3319b4d549a3dc74776c76cfd86cd254 (diff) | |
| download | golang-7491bfa6b8d8ef3289cfa37db0365f1221203a50.tar.gz | |
string slicing is efficient so remove base and bounds arguments from RuneCountInString
R=rsc
DELTA=6 (1 added, 0 deleted, 5 changed)
OCL=28242
CL=28256
Diffstat (limited to 'src/lib/utf8_test.go')
| -rw-r--r-- | src/lib/utf8_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utf8_test.go b/src/lib/utf8_test.go index 1f29cb82d..3ba5ee2b8 100644 --- a/src/lib/utf8_test.go +++ b/src/lib/utf8_test.go @@ -169,7 +169,7 @@ var runecounttests = []RuneCountTest { 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 { + if out := utf8.RuneCountInString(tt.in); out != tt.out { t.Errorf("RuneCountInString(%q) = %d, want %d", tt.in, out, tt.out); } if out := utf8.RuneCount(bytes(tt.in)); out != tt.out { |
