summaryrefslogtreecommitdiff
path: root/src/lib/utf8_test.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-05-04 22:12:13 -0700
committerRob Pike <r@golang.org>2009-05-04 22:12:13 -0700
commit7491bfa6b8d8ef3289cfa37db0365f1221203a50 (patch)
tree540f90bfbe2deedff124fbd3e27d114a6b42393a /src/lib/utf8_test.go
parentf8944c3c3319b4d549a3dc74776c76cfd86cd254 (diff)
downloadgolang-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.go2
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 {