aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/utf8/utf8_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/utf8/utf8_test.go')
-rw-r--r--src/pkg/utf8/utf8_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pkg/utf8/utf8_test.go b/src/pkg/utf8/utf8_test.go
index 68bfa6a772..460fdb543c 100644
--- a/src/pkg/utf8/utf8_test.go
+++ b/src/pkg/utf8/utf8_test.go
@@ -6,7 +6,6 @@ package utf8_test
import (
"bytes"
- "strings"
"testing"
. "utf8"
)
@@ -48,7 +47,7 @@ var utf8map = []Utf8Map{
// strings.Bytes with one extra byte at end
func makeBytes(s string) []byte {
s += "\x00"
- b := strings.Bytes(s)
+ b := []byte(s)
return b[0 : len(s)-1]
}
@@ -214,7 +213,7 @@ func BenchmarkDecodeASCIIRune(b *testing.B) {
}
func BenchmarkDecodeJapaneseRune(b *testing.B) {
- nihon := strings.Bytes("本")
+ nihon := []byte("本")
for i := 0; i < b.N; i++ {
DecodeRune(nihon)
}