From 69b4571c6bafcd7d9f675d3eb49d4c088d372eea Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 10 Jul 2018 16:27:58 -0700 Subject: 0.5: Support floats nan, inf, and +/-0.0. cc #224 --- test-suite/tests/valid/integer.json | 4 +++- test-suite/tests/valid/integer.toml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'test-suite/tests/valid') diff --git a/test-suite/tests/valid/integer.json b/test-suite/tests/valid/integer.json index 61985a1..86f779f 100644 --- a/test-suite/tests/valid/integer.json +++ b/test-suite/tests/valid/integer.json @@ -1,4 +1,6 @@ { "answer": {"type": "integer", "value": "42"}, - "neganswer": {"type": "integer", "value": "-42"} + "neganswer": {"type": "integer", "value": "-42"}, + "neg_zero": {"type": "integer", "value": "0"}, + "pos_zero": {"type": "integer", "value": "0"} } diff --git a/test-suite/tests/valid/integer.toml b/test-suite/tests/valid/integer.toml index c4f6297..2bdca34 100644 --- a/test-suite/tests/valid/integer.toml +++ b/test-suite/tests/valid/integer.toml @@ -1,2 +1,4 @@ answer = 42 neganswer = -42 +neg_zero = -0 +pos_zero = +0 -- cgit v1.2.3