]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/gob: fix broken test (fix build)
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 14 Jan 2013 06:03:19 +0000 (17:03 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 14 Jan 2013 06:03:19 +0000 (17:03 +1100)
R=golang-dev, kevlar
CC=adg, golang-dev
https://golang.org/cl/7093056

src/pkg/encoding/gob/gobencdec_test.go

index 58136d3655c86843024d4d48d2affe9255a2cb87..18f4450da6d4051a322cceabc2c98edda4941ecc 100644 (file)
@@ -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)
        }
 }