Internal Code Change

PiperOrigin-RevId: 514640775
pull/12027/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 0b9134bb4e
commit edb4da6eaa
  1. 16
      conformance/binary_json_conformance_suite.cc

@ -1431,12 +1431,12 @@ void BinaryAndJsonConformanceSuite::RunSuiteImpl() {
TestIllegalTags();
int64 kInt64Min = -9223372036854775808ULL;
int64 kInt64Max = 9223372036854775807ULL;
uint64 kUint64Max = 18446744073709551615ULL;
int32 kInt32Max = 2147483647;
int32 kInt32Min = -2147483648;
uint32 kUint32Max = 4294967295UL;
int64_t kInt64Min = -9223372036854775808ULL;
int64_t kInt64Max = 9223372036854775807ULL;
uint64_t kUint64Max = 18446744073709551615ULL;
int32_t kInt32Max = 2147483647;
int32_t kInt32Min = -2147483648;
uint32_t kUint32Max = 4294967295UL;
TestValidDataForType(
FieldDescriptor::TYPE_DOUBLE,
@ -2318,11 +2318,11 @@ void BinaryAndJsonConformanceSuite::RunJsonTestsForNonRepeatedTypes() {
{
TestAllTypesProto3 message;
message.set_optional_double(
WireFormatLite::DecodeDouble(int64{0x7FFA123456789ABC}));
WireFormatLite::DecodeDouble(int64_t{0x7FFA123456789ABC}));
RunValidJsonTestWithProtobufInput("DoubleFieldNormalizeQuietNan", REQUIRED,
message, "optional_double: nan");
message.set_optional_double(
WireFormatLite::DecodeDouble(uint64{0xFFFBCBA987654321}));
WireFormatLite::DecodeDouble(uint64_t{0xFFFBCBA987654321}));
RunValidJsonTestWithProtobufInput("DoubleFieldNormalizeSignalingNan",
REQUIRED, message,
"optional_double: nan");

Loading…
Cancel
Save