protobuf-go/testing
Joe Tsai fb30a40376 testing/protobuf: fix float comparison bug
The prior code was comparing a to a, when it should compare a to b.

While we're at it, split the float32 and float64 cases apart to
ensure that the type provided by the implementation under test
really was the right float type. This matches the behavior of the
default case (which check that the types exactly match).

Change-Id: I01b1ff5b7f312a35cc8d1f012f3f747db26379fd
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/178377
Reviewed-by: Damien Neil <dneil@google.com>
2019-05-21 14:02:32 +00:00
..
prototest testing/protobuf: fix float comparison bug 2019-05-21 14:02:32 +00:00