aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/valid
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2018-07-10 16:27:58 -0700
committerEric Huss <eric@huss.org>2018-07-11 00:50:04 -0700
commit69b4571c6bafcd7d9f675d3eb49d4c088d372eea (patch)
tree3a1715fa18ba7640c12fea20ffaa762206c95c62 /test-suite/tests/valid
parent2be7ce9079fa02d9dd42958410ba1c40cef9811c (diff)
downloadmilf-rs-69b4571c6bafcd7d9f675d3eb49d4c088d372eea.tar.gz
milf-rs-69b4571c6bafcd7d9f675d3eb49d4c088d372eea.zip
0.5: Support floats nan, inf, and +/-0.0.
cc #224
Diffstat (limited to 'test-suite/tests/valid')
-rw-r--r--test-suite/tests/valid/integer.json4
-rw-r--r--test-suite/tests/valid/integer.toml2
2 files changed, 5 insertions, 1 deletions
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