From 06af0ea3f3f09aed0fe5cd945067611e9fb76ff3 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Mon, 14 Jan 2013 17:03:19 +1100 Subject: [PATCH] encoding/gob: fix broken test (fix build) R=golang-dev, kevlar CC=adg, golang-dev https://golang.org/cl/7093056 --- src/pkg/encoding/gob/gobencdec_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/encoding/gob/gobencdec_test.go b/src/pkg/encoding/gob/gobencdec_test.go index 58136d3655..18f4450da6 100644 --- a/src/pkg/encoding/gob/gobencdec_test.go +++ b/src/pkg/encoding/gob/gobencdec_test.go @@ -394,7 +394,7 @@ func TestGobEncoderValueThenPointer(t *testing.T) { if got, want := x.V, v; got != want { t.Errorf("v = %q, want %q", got, want) } - if got, want := v.W, w; got == nil { + if got, want := x.W, w; got == nil { t.Errorf("w = nil, want %q", want) } else if *got != want { t.Errorf("w = %q, want %q", *got, want) @@ -422,7 +422,7 @@ func TestGobEncoderPointerThenValue(t *testing.T) { } else if *got != want { t.Errorf("v = %q, want %q", got, want) } - if got, want := v.W, w; got != want { + if got, want := x.W, w; got != want { t.Errorf("w = %q, want %q", got, want) } } -- 2.48.1