bufio: WriteRune

also fix a printing error in the test for bytes.Buffer

R=golang-dev
CC=golang-dev
https://golang.org/cl/240042
This commit is contained in:
Rob Pike 2010-03-05 14:03:17 -08:00
parent 308064fc59
commit 8c9944d8c8
3 changed files with 60 additions and 1 deletions

View file

@ -277,7 +277,7 @@ func TestRuneIO(t *testing.T) {
t.Fatalf("WriteRune(0x%x) error: %s", r, err)
}
if nbytes != size {
t.Fatalf("WriteRune(0x%x) expected %d, got %d", size, nbytes)
t.Fatalf("WriteRune(0x%x) expected %d, got %d", r, size, nbytes)
}
n += size
}