aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/encoding/binary/varint_test.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-03-07 01:16:20 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-03-07 01:16:20 +0000
commit0effc3f961337abd0edb7c1a3dcd4b98636c085c (patch)
tree28d4e50a31f7428050763b36e3c7bbdeeb541a0f /libgo/go/encoding/binary/varint_test.go
parent1f3d0afc2623f1728a73971d415ca2991f7b9c18 (diff)
downloadgcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.zip
gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.tar.gz
gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.tar.bz2
libgo: Implement and use runtime.Caller, runtime.Func.FileLine.
From-SVN: r185025
Diffstat (limited to 'libgo/go/encoding/binary/varint_test.go')
-rw-r--r--libgo/go/encoding/binary/varint_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/libgo/go/encoding/binary/varint_test.go b/libgo/go/encoding/binary/varint_test.go
index 9476bd5..f67ca63 100644
--- a/libgo/go/encoding/binary/varint_test.go
+++ b/libgo/go/encoding/binary/varint_test.go
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package binary
+package binary_test
import (
"bytes"
+ . "encoding/binary"
"io"
"testing"
)
@@ -134,8 +135,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) {