Handle +/-inf in protos (#7256)

* Handle +/-inf in protos

* Check for digit in 4th pos
This commit is contained in:
Derek Bailey
2022-04-19 13:07:26 -07:00
committed by GitHub
parent 7bcd857b87
commit ccfb4c20bf
8 changed files with 48 additions and 8 deletions

View File

@@ -67,4 +67,8 @@ message ProtoMessage {
OtherMessage t = 18;
}
optional ProtoEnum outer_enum = 33;
// Tests that `inf` and `+/-inf` can be parsed in proto options.
optional float u = 34 [default = inf];
optional float v = 35 [default = +inf];
optional float w = 36 [default = -inf];
}