From 14b40ec77a4bf8605789cc3aff0eb87625510a41 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Jul 2024 11:40:12 +0200 Subject: Adding upstream version 1.2+20240521. Signed-off-by: Daniel Baumann --- tests/inputs/float/float.json | 9 +++++++++ tests/inputs/float/float.proto | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tests/inputs/float/float.json create mode 100644 tests/inputs/float/float.proto (limited to 'tests/inputs/float') diff --git a/tests/inputs/float/float.json b/tests/inputs/float/float.json new file mode 100644 index 0000000..3adac97 --- /dev/null +++ b/tests/inputs/float/float.json @@ -0,0 +1,9 @@ +{ + "positive": "Infinity", + "negative": "-Infinity", + "nan": "NaN", + "three": 3.0, + "threePointOneFour": 3.14, + "negThree": -3.0, + "negThreePointOneFour": -3.14 + } diff --git a/tests/inputs/float/float.proto b/tests/inputs/float/float.proto new file mode 100644 index 0000000..fea12b3 --- /dev/null +++ b/tests/inputs/float/float.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package float; + +// 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; +} -- cgit v1.2.3