summaryrefslogtreecommitdiff
path: root/src/lib/bufio_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-02-03 14:16:22 -0800
committerRuss Cox <rsc@golang.org>2009-02-03 14:16:22 -0800
commit5b6d40041f593663c52f574f69d7d6bfc51e9ff5 (patch)
tree91e8a1f2fd6548d6c9ad61f91f97f19990bbc92e /src/lib/bufio_test.go
parentffcd33538f133b407f1187842f94932593d312b1 (diff)
downloadgolang-5b6d40041f593663c52f574f69d7d6bfc51e9ff5.tar.gz
bufio:
* avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238
Diffstat (limited to 'src/lib/bufio_test.go')
-rw-r--r--src/lib/bufio_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/bufio_test.go b/src/lib/bufio_test.go
index 17fb379cb..9ffd6cbfd 100644
--- a/src/lib/bufio_test.go
+++ b/src/lib/bufio_test.go
@@ -174,12 +174,12 @@ var bufsizes = []int {
}
func TestBufReadSimple(t *testing.T) {
- b, e := NewBufRead(newByteReader(io.StringBytes("hello world")));
+ b := NewBufRead(newByteReader(io.StringBytes("hello world")));
if s := readBytes(b); s != "hello world" {
t.Errorf("simple hello world test failed: got %q", s);
}
- b, e = NewBufRead(newRot13Reader(newByteReader(io.StringBytes("hello world"))));
+ b = NewBufRead(newRot13Reader(newByteReader(io.StringBytes("hello world"))));
if s := readBytes(b); s != "uryyb jbeyq" {
t.Error("rot13 hello world test failed: got %q", s);
}