diff options
Diffstat (limited to 'third_party/python/jsonschema/json/tests/latest/exclusiveMaximum.json')
-rw-r--r-- | third_party/python/jsonschema/json/tests/latest/exclusiveMaximum.json | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/third_party/python/jsonschema/json/tests/latest/exclusiveMaximum.json b/third_party/python/jsonschema/json/tests/latest/exclusiveMaximum.json new file mode 100644 index 0000000000..dc3cd709d3 --- /dev/null +++ b/third_party/python/jsonschema/json/tests/latest/exclusiveMaximum.json @@ -0,0 +1,30 @@ +[ + { + "description": "exclusiveMaximum validation", + "schema": { + "exclusiveMaximum": 3.0 + }, + "tests": [ + { + "description": "below the exclusiveMaximum is valid", + "data": 2.2, + "valid": true + }, + { + "description": "boundary point is invalid", + "data": 3.0, + "valid": false + }, + { + "description": "above the exclusiveMaximum is invalid", + "data": 3.5, + "valid": false + }, + { + "description": "ignores non-numbers", + "data": "x", + "valid": true + } + ] + } +] |