mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
308064fc59
commit
8c9944d8c8
3 changed files with 60 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue