mirror of
https://github.com/golang/go
synced 2024-11-12 10:00:25 -07:00
bufio: fix indexes in TestWriter
This commit is contained in:
parent
891682c825
commit
5d53406c70
@ -550,7 +550,7 @@ func TestWriter(t *testing.T) {
|
|||||||
t.Errorf("%s: %d bytes written", context, len(written))
|
t.Errorf("%s: %d bytes written", context, len(written))
|
||||||
}
|
}
|
||||||
for l := 0; l < len(written); l++ {
|
for l := 0; l < len(written); l++ {
|
||||||
if written[i] != data[i] {
|
if written[l] != data[l] {
|
||||||
t.Errorf("wrong bytes written")
|
t.Errorf("wrong bytes written")
|
||||||
t.Errorf("want=%q", data[0:len(written)])
|
t.Errorf("want=%q", data[0:len(written)])
|
||||||
t.Errorf("have=%q", written)
|
t.Errorf("have=%q", written)
|
||||||
|
Loading…
Reference in New Issue
Block a user