summaryrefslogtreecommitdiff
path: root/src/lib/utf8_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utf8_test.go')
-rw-r--r--src/lib/utf8_test.go13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/utf8_test.go b/src/lib/utf8_test.go
index 966b2c975..1f29cb82d 100644
--- a/src/lib/utf8_test.go
+++ b/src/lib/utf8_test.go
@@ -90,7 +90,7 @@ func TestEncodeRune(t *testing.T) {
m := utf8map[i];
b := bytes(m.str);
var buf [10]byte;
- n := utf8.EncodeRune(m.rune, buf);
+ n := utf8.EncodeRune(m.rune, &buf);
b1 := buf[0:n];
if !equalBytes(b, b1) {
t.Errorf("EncodeRune(0x%04x) = %q want %q", m.rune, b1, b);
@@ -98,17 +98,6 @@ func TestEncodeRune(t *testing.T) {
}
}
-func TestEncodeRuneToString(t *testing.T) {
- for i := 0; i < len(utf8map); i++ {
- m := utf8map[i];
- s := m.str;
- s1 := utf8.EncodeRuneToString(m.rune);
- if s != s1 {
- t.Errorf("EncodeRuneToString(0x%04x) = %s want %s", m.rune, s1, s);
- }
- }
-}
-
func TestDecodeRune(t *testing.T) {
for i := 0; i < len(utf8map); i++ {
m := utf8map[i];