From 8c2d9141206c239d18553bcfde82d577f5f0249a Mon Sep 17 00:00:00 2001 From: Sagar-6203620715 Date: Sat, 7 Mar 2026 12:51:35 +0530 Subject: [PATCH] fix: move bignum-dependent multipleOf tests to optional/bignum.json Signed-off-by: Sagar-6203620715 --- tests/draft2019-09/multipleOf.json | 28 ------------------------ tests/draft2019-09/optional/bignum.json | 28 ++++++++++++++++++++++++ tests/draft2020-12/multipleOf.json | 28 ------------------------ tests/draft2020-12/optional/bignum.json | 28 ++++++++++++++++++++++++ tests/draft4/multipleOf.json | 22 ------------------- tests/draft4/optional/bignum.json | 22 +++++++++++++++++++ tests/draft6/multipleOf.json | 22 ------------------- tests/draft6/optional/bignum.json | 22 +++++++++++++++++++ tests/draft7/multipleOf.json | 22 ------------------- tests/draft7/optional/bignum.json | 22 +++++++++++++++++++ tests/v1/multipleOf.json | 29 ------------------------- tests/v1/optional/bignum.json | 29 +++++++++++++++++++++++++ 12 files changed, 151 insertions(+), 151 deletions(-) diff --git a/tests/draft2019-09/multipleOf.json b/tests/draft2019-09/multipleOf.json index 760a434c..4324c4f3 100644 --- a/tests/draft2019-09/multipleOf.json +++ b/tests/draft2019-09/multipleOf.json @@ -65,33 +65,5 @@ "valid": false } ] - }, - { - "description": "float division = inf", - "schema": { - "$schema": "https://json-schema.org/draft/2019-09/schema", - "type": "integer", "multipleOf": 0.123456789 - }, - "tests": [ - { - "description": "always invalid, but naive implementations may raise an overflow error", - "data": 1e308, - "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/draft2019-09/optional/bignum.json b/tests/draft2019-09/optional/bignum.json index 8b064677..e0062f2f 100644 --- a/tests/draft2019-09/optional/bignum.json +++ b/tests/draft2019-09/optional/bignum.json @@ -106,5 +106,33 @@ "valid": false } ] + }, + { + "description": "float division = inf", + "schema": { + "$schema": "https://json-schema.org/draft/2019-09/schema", + "type": "integer", "multipleOf": 0.123456789 + }, + "tests": [ + { + "description": "always invalid, but naive implementations may raise an overflow error", + "data": 1e308, + "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 92d6979b..5dbabc11 100644 --- a/tests/draft2020-12/multipleOf.json +++ b/tests/draft2020-12/multipleOf.json @@ -65,33 +65,5 @@ "valid": false } ] - }, - { - "description": "float division = inf", - "schema": { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "type": "integer", "multipleOf": 0.123456789 - }, - "tests": [ - { - "description": "always invalid, but naive implementations may raise an overflow error", - "data": 1e308, - "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/draft2020-12/optional/bignum.json b/tests/draft2020-12/optional/bignum.json index d69b29e8..67ffba4e 100644 --- a/tests/draft2020-12/optional/bignum.json +++ b/tests/draft2020-12/optional/bignum.json @@ -106,5 +106,33 @@ "valid": false } ] + }, + { + "description": "float division = inf", + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "integer", "multipleOf": 0.123456789 + }, + "tests": [ + { + "description": "always invalid, but naive implementations may raise an overflow error", + "data": 1e308, + "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 ed2df4a7..ca3b7618 100644 --- a/tests/draft4/multipleOf.json +++ b/tests/draft4/multipleOf.json @@ -56,27 +56,5 @@ "valid": false } ] - }, - { - "description": "float division = inf", - "schema": {"type": "integer", "multipleOf": 0.123456789}, - "tests": [ - { - "description": "invalid, but naive implementations may raise an overflow error", - "data": 1e308, - "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/draft4/optional/bignum.json b/tests/draft4/optional/bignum.json index 1bc8eb21..2e0ebdd2 100644 --- a/tests/draft4/optional/bignum.json +++ b/tests/draft4/optional/bignum.json @@ -91,5 +91,27 @@ "valid": false } ] + }, + { + "description": "float division = inf", + "schema": {"type": "integer", "multipleOf": 0.123456789}, + "tests": [ + { + "description": "invalid, but naive implementations may raise an overflow error", + "data": 1e308, + "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 e606979b..ca3b7618 100644 --- a/tests/draft6/multipleOf.json +++ b/tests/draft6/multipleOf.json @@ -56,27 +56,5 @@ "valid": false } ] - }, - { - "description": "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 - } - ] - }, - { - "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/optional/bignum.json b/tests/draft6/optional/bignum.json index 94b4a4e6..b72005b6 100644 --- a/tests/draft6/optional/bignum.json +++ b/tests/draft6/optional/bignum.json @@ -89,5 +89,27 @@ "valid": false } ] + }, + { + "description": "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 + } + ] + }, + { + "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 e606979b..ca3b7618 100644 --- a/tests/draft7/multipleOf.json +++ b/tests/draft7/multipleOf.json @@ -56,27 +56,5 @@ "valid": false } ] - }, - { - "description": "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 - } - ] - }, - { - "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/optional/bignum.json b/tests/draft7/optional/bignum.json index 94b4a4e6..b72005b6 100644 --- a/tests/draft7/optional/bignum.json +++ b/tests/draft7/optional/bignum.json @@ -89,5 +89,27 @@ "valid": false } ] + }, + { + "description": "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 + } + ] + }, + { + "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/v1/multipleOf.json b/tests/v1/multipleOf.json index d195db2c..bfab7e5d 100644 --- a/tests/v1/multipleOf.json +++ b/tests/v1/multipleOf.json @@ -65,34 +65,5 @@ "valid": false } ] - }, - { - "description": "float division = inf", - "schema": { - "$schema": "https://json-schema.org/v1", - "type": "integer", - "multipleOf": 0.123456789 - }, - "tests": [ - { - "description": "always invalid, but naive implementations may raise an overflow error", - "data": 1e308, - "valid": false - } - ] - }, - { - "description": "small multiple of large integer", - "schema": { - "$schema": "https://json-schema.org/v1", - "type": "integer", "multipleOf": 1e-8 - }, - "tests": [ - { - "description": "any integer is a multiple of 1e-8", - "data": 12391239123, - "valid": true - } - ] } ] diff --git a/tests/v1/optional/bignum.json b/tests/v1/optional/bignum.json index dc19c2b8..4bf2c38f 100644 --- a/tests/v1/optional/bignum.json +++ b/tests/v1/optional/bignum.json @@ -106,5 +106,34 @@ "valid": false } ] + }, + { + "description": "float division = inf", + "schema": { + "$schema": "https://json-schema.org/v1", + "type": "integer", + "multipleOf": 0.123456789 + }, + "tests": [ + { + "description": "always invalid, but naive implementations may raise an overflow error", + "data": 1e308, + "valid": false + } + ] + }, + { + "description": "small multiple of large integer", + "schema": { + "$schema": "https://json-schema.org/v1", + "type": "integer", "multipleOf": 1e-8 + }, + "tests": [ + { + "description": "any integer is a multiple of 1e-8", + "data": 12391239123, + "valid": true + } + ] } ]