summaryrefslogtreecommitdiff
path: root/json/tests/draft3
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft3')
-rw-r--r--json/tests/draft3/optional/bignum.json24
1 files changed, 8 insertions, 16 deletions
diff --git a/json/tests/draft3/optional/bignum.json b/json/tests/draft3/optional/bignum.json
index 7b4755c..b03e14b 100644
--- a/json/tests/draft3/optional/bignum.json
+++ b/json/tests/draft3/optional/bignum.json
@@ -1,6 +1,6 @@
[
{
- "description": "integer",
+ "description": "support for bignums",
"schema": {"type": "integer"},
"tests": [
{
@@ -11,23 +11,15 @@
]
},
{
- "description": "number",
- "schema": {"type": "number"},
- "tests": [
- {
- "description": "a bignum is a number",
- "data": 98249283749234923498293171823948729348710298301928331,
- "valid": true
- }
- ]
- },
- {
- "description": "string",
- "schema": {"type": "string"},
+ "description": "float comparison with high precision",
+ "schema": {
+ "maximum": 972783798187987123879878123.18878137,
+ "exclusiveMaximum": true
+ },
"tests": [
{
- "description": "a bignum is not a string",
- "data": 98249283749234923498293171823948729348710298301928331,
+ "description": "comparison works for high numbers",
+ "data": 972783798187987123879878123.188781371,
"valid": false
}
]