aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/encoding/binary/varint_test.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-02-10 06:02:38 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-02-10 06:02:38 +0000
commitd54fc074734ea7467a0861c861b145c8ef740bf4 (patch)
treefe1dad02b57206be8eeb4f61819b2f677ea99ee4 /libgo/go/encoding/binary/varint_test.go
parent8e29a61c2dc3d591cba39c4f4e8933a76493b22f (diff)
downloadgcc-d54fc074734ea7467a0861c861b145c8ef740bf4.zip
gcc-d54fc074734ea7467a0861c861b145c8ef740bf4.tar.gz
gcc-d54fc074734ea7467a0861c861b145c8ef740bf4.tar.bz2
compiler, libgo: Permit testing package when test imports it circularly.
From-SVN: r195931
Diffstat (limited to 'libgo/go/encoding/binary/varint_test.go')
-rw-r--r--libgo/go/encoding/binary/varint_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/libgo/go/encoding/binary/varint_test.go b/libgo/go/encoding/binary/varint_test.go
index f67ca63..9476bd5 100644
--- a/libgo/go/encoding/binary/varint_test.go
+++ b/libgo/go/encoding/binary/varint_test.go
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package binary_test
+package binary
import (
"bytes"
- . "encoding/binary"
"io"
"testing"
)
@@ -135,8 +134,8 @@ func testOverflow(t *testing.T, buf []byte, n0 int, err0 error) {
}
func TestOverflow(t *testing.T) {
- testOverflow(t, []byte{0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x2}, -10, Overflow)
- testOverflow(t, []byte{0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x1, 0, 0}, -13, Overflow)
+ testOverflow(t, []byte{0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x2}, -10, overflow)
+ testOverflow(t, []byte{0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x1, 0, 0}, -13, overflow)
}
func TestNonCanonicalZero(t *testing.T) {