- Added support for the custom double values from the protobuf json spec: "Infinity", "-Infinity", and "NaN" - Added `infinite_floats` test data - Updated Message.__eq__ to consider nan values equal - Updated `test_message_json` and `test_binary_compatibility` to replace NaN float values in dictionaries before comparison (because two NaN values are not equal)
13 lines
279 B
Protocol Buffer
13 lines
279 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
// Some documentation about the Test message.
|
|
message Test {
|
|
double positive = 1;
|
|
double negative = 2;
|
|
double nan = 3;
|
|
double three = 4;
|
|
double three_point_one_four = 5;
|
|
double neg_three = 6;
|
|
double neg_three_point_one_four = 7;
|
|
}
|