libgo: Update to weekly.2011-11-02.

From-SVN: r181964
This commit is contained in:
Ian Lance Taylor 2011-12-03 02:17:34 +00:00
parent 02e9018f16
commit 2fd401c8f1
499 changed files with 4056 additions and 4239 deletions

View file

@ -6,7 +6,7 @@ package binary
import (
"bytes"
"os"
"io"
"testing"
)
@ -131,13 +131,13 @@ func TestBufferTooSmall(t *testing.T) {
}
x, err := ReadUvarint(bytes.NewBuffer(buf))
if x != 0 || err != os.EOF {
if x != 0 || err != io.EOF {
t.Errorf("ReadUvarint(%v): got x = %d, err = %s", buf, x, err)
}
}
}
func testOverflow(t *testing.T, buf []byte, n0 int, err0 os.Error) {
func testOverflow(t *testing.T, buf []byte, n0 int, err0 error) {
x, n := Uvarint(buf)
if x != 0 || n != n0 {
t.Errorf("Uvarint(%v): got x = %d, n = %d; want 0, %d", buf, x, n, n0)