diff options
author | Rob Pike <r@golang.org> | 2009-07-02 18:02:42 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-07-02 18:02:42 -0700 |
commit | 95577dd50006bd10d2916f23d3abf0b76eb2df78 (patch) | |
tree | f0326a4b4951188585a57e81ea8824fa557fa740 /src/pkg/gob/codec_test.go | |
parent | a00bf865c1856a20316608f2fa497862dc268267 (diff) | |
download | golang-95577dd50006bd10d2916f23d3abf0b76eb2df78.tar.gz |
slices
R=rsc
DELTA=59 (44 added, 13 deleted, 2 changed)
OCL=31105
CL=31105
Diffstat (limited to 'src/pkg/gob/codec_test.go')
-rw-r--r-- | src/pkg/gob/codec_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/gob/codec_test.go b/src/pkg/gob/codec_test.go index 8dd252b4c..e25a719fa 100644 --- a/src/pkg/gob/codec_test.go +++ b/src/pkg/gob/codec_test.go @@ -525,7 +525,7 @@ func TestScalarDecInstructions(t *testing.T) { } -func TestEncode(t *testing.T) { +func TestEndToEnd(t *testing.T) { type T2 struct { t string } @@ -535,6 +535,7 @@ func TestEncode(t *testing.T) { a, b,c int; n *[3]float; strs *[2]string; + int64s *[]int64; s string; y []byte; t *T2; @@ -545,6 +546,7 @@ func TestEncode(t *testing.T) { c: -5, n: &[3]float{1.5, 2.5, 3.5}, strs: &[2]string{s1, s2}, + int64s: &[]int64{77, 89, 123412342134}, s: "Now is the time", y: strings.Bytes("hello, sailor"), t: &T2{"this is T2"}, |