diff options
author | Eric Huss <eric@huss.org> | 2018-07-10 16:27:58 -0700 |
---|---|---|
committer | Eric Huss <eric@huss.org> | 2018-07-11 00:50:04 -0700 |
commit | 69b4571c6bafcd7d9f675d3eb49d4c088d372eea (patch) | |
tree | 3a1715fa18ba7640c12fea20ffaa762206c95c62 /test-suite/tests/valid | |
parent | 2be7ce9079fa02d9dd42958410ba1c40cef9811c (diff) | |
download | milf-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.json | 4 | ||||
-rw-r--r-- | test-suite/tests/valid/integer.toml | 2 |
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 |