protobuf-go/internal
Damien Neil 3fa6d3f003 internal/encoding/pack: don't depend on exact math.NaN bits
This test examines the result of converting math.NaN() to a fixed byte
string. Change it to use a specific NaN value instead, since the value
returned by math.NaN is specified only as being a NaN, not a specific
one.

Use specific float32 and float64 NaN values, since the result of
converting a float64 NaN to a float32 can and does vary.

Fixes test failure on ARM.

Change-Id: Ia1517fdba768cdd88e5ee5f5af37f0b481e651b4
Reviewed-on: https://go-review.googlesource.com/c/162117
Reviewed-by: Herbie Ong <herbie@google.com>
2019-02-12 21:38:35 +00:00
..
cmd internal/fileinit: generate reflect data structures from raw descriptors 2019-01-30 01:33:46 +00:00
detrand internal/detrand: support disabling detrand 2018-11-29 07:49:45 +00:00
encoding internal/encoding/pack: don't depend on exact math.NaN bits 2019-02-12 21:38:35 +00:00
errors
fileinit internal/fileinit: add tests for fileinit and protodesc 2019-01-30 01:34:30 +00:00
flags
impl internal/impl: drop MessageType.(Unk|K)nownFieldsOf 2019-01-30 01:34:45 +00:00
legacy internal/fileinit: generate reflect data structures from raw descriptors 2019-01-30 01:33:46 +00:00
pragma
protogen/goldentest protogen: annotate interface methods 2018-12-12 19:34:33 +00:00
scalar internal/scalar: add scalar package for primitive wrappers 2018-11-28 07:06:11 +00:00
set
testprotos internal/fileinit: add tests for fileinit and protodesc 2019-01-30 01:34:30 +00:00
typefmt reflect/protoreflect: add HasJSONName, ReservedRanges, and ReservedNames 2018-12-07 20:10:15 +00:00
value reflect: switch MessageType.New to return Message 2019-01-09 20:29:29 +00:00