summaryrefslogtreecommitdiff
path: root/json/tests/draft7/multipleOf.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft7/multipleOf.json')
-rw-r--r--json/tests/draft7/multipleOf.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/json/tests/draft7/multipleOf.json b/json/tests/draft7/multipleOf.json
index ca3b761..faa87cf 100644
--- a/json/tests/draft7/multipleOf.json
+++ b/json/tests/draft7/multipleOf.json
@@ -56,5 +56,16 @@
"valid": false
}
]
+ },
+ {
+ "description": "invalid instance should not raise error when float division = inf",
+ "schema": {"type": "integer", "multipleOf": 0.123456789},
+ "tests": [
+ {
+ "description": "always invalid, but naive implementations may raise an overflow error",
+ "data": 1e308,
+ "valid": false
+ }
+ ]
}
]