diff --git a/tests/draft-next/multipleOf.json b/tests/draft-next/multipleOf.json index d640b3b1..f1534545 100644 --- a/tests/draft-next/multipleOf.json +++ b/tests/draft-next/multipleOf.json @@ -80,5 +80,19 @@ "valid": false } ] + }, + { + "description": "small multiple of large integer", + "schema": { + "$schema": "https://json-schema.org/draft/next/schema", + "type": "integer", "multipleOf": 1e-8 + }, + "tests": [ + { + "description": "any integer is a multiple of 1e-8", + "data": 12391239123, + "valid": true + } + ] } ] diff --git a/tests/draft2019-09/multipleOf.json b/tests/draft2019-09/multipleOf.json index 94af1693..760a434c 100644 --- a/tests/draft2019-09/multipleOf.json +++ b/tests/draft2019-09/multipleOf.json @@ -79,5 +79,19 @@ "valid": false } ] + }, + { + "description": "small multiple of large integer", + "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", + "type": "integer", "multipleOf": 1e-8 + }, + "tests": [ + { + "description": "any integer is a multiple of 1e-8", + "data": 12391239123, + "valid": true + } + ] } ] diff --git a/tests/draft2020-12/multipleOf.json b/tests/draft2020-12/multipleOf.json index e0755588..92d6979b 100644 --- a/tests/draft2020-12/multipleOf.json +++ b/tests/draft2020-12/multipleOf.json @@ -79,5 +79,19 @@ "valid": false } ] + }, + { + "description": "small multiple of large integer", + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "integer", "multipleOf": 1e-8 + }, + "tests": [ + { + "description": "any integer is a multiple of 1e-8", + "data": 12391239123, + "valid": true + } + ] } ] diff --git a/tests/draft4/multipleOf.json b/tests/draft4/multipleOf.json index 9abeb975..ed2df4a7 100644 --- a/tests/draft4/multipleOf.json +++ b/tests/draft4/multipleOf.json @@ -67,5 +67,16 @@ "valid": false } ] + }, + { + "description": "small multiple of large integer", + "schema": {"type": "integer", "multipleOf": 1e-8}, + "tests": [ + { + "description": "any integer is a multiple of 1e-8", + "data": 12391239123, + "valid": true + } + ] } ] diff --git a/tests/draft6/multipleOf.json b/tests/draft6/multipleOf.json index 25c25a91..e606979b 100644 --- a/tests/draft6/multipleOf.json +++ b/tests/draft6/multipleOf.json @@ -67,5 +67,16 @@ "valid": false } ] + }, + { + "description": "small multiple of large integer", + "schema": {"type": "integer", "multipleOf": 1e-8}, + "tests": [ + { + "description": "any integer is a multiple of 1e-8", + "data": 12391239123, + "valid": true + } + ] } ] diff --git a/tests/draft7/multipleOf.json b/tests/draft7/multipleOf.json index 25c25a91..e606979b 100644 --- a/tests/draft7/multipleOf.json +++ b/tests/draft7/multipleOf.json @@ -67,5 +67,16 @@ "valid": false } ] + }, + { + "description": "small multiple of large integer", + "schema": {"type": "integer", "multipleOf": 1e-8}, + "tests": [ + { + "description": "any integer is a multiple of 1e-8", + "data": 12391239123, + "valid": true + } + ] } ]