diff options
author | Alberto Donizetti <alb.donizetti@gmail.com> | 2016-05-06 18:16:52 +0200 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-05-06 16:56:19 +0000 |
commit | a5c5f6ea94dcd9caad0f0df8caaf68f8659900b2 (patch) | |
tree | 70e347b624a488d8f89383c4b629e179cfae13c8 /src/encoding/gob | |
parent | c81a3532fea42df33dea54497dfaa96873c2d976 (diff) | |
download | go-a5c5f6ea94dcd9caad0f0df8caaf68f8659900b2.tar.gz go-a5c5f6ea94dcd9caad0f0df8caaf68f8659900b2.zip |
all: fix copy-and-paste errors in tests
Fixes #15570
Change-Id: I95d1ac26e342c3bbf36ad1f0209711ea96eaf487
Reviewed-on: https://go-review.googlesource.com/22870
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/gob')
-rw-r--r-- | src/encoding/gob/codec_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/gob/codec_test.go b/src/encoding/gob/codec_test.go index b772171f93..d4002cbcca 100644 --- a/src/encoding/gob/codec_test.go +++ b/src/encoding/gob/codec_test.go @@ -1253,7 +1253,7 @@ func TestIgnoreInterface(t *testing.T) { if item2.I != item1.I { t.Error("normal int did not decode correctly") } - if item2.F != item2.F { + if item2.F != item1.F { t.Error("normal float did not decode correctly") } } @@ -1280,7 +1280,7 @@ func TestUnexportedFields(t *testing.T) { if err != nil { t.Fatal("decode error:", err) } - if u0.A != u0.A || u0.B != u1.B || u0.D != u1.D { + if u0.A != u1.A || u0.B != u1.B || u0.D != u1.D { t.Errorf("u1->u0: expected %v; got %v", u0, u1) } if u1.c != 1234. { |