Sha256: 81f0190157ca5fc6fa4b09316d76bda09564aa81a44ac9a4549ca22a37103ae3

Contents?: true

Size: 1.51 KB

Versions: 22

Compression:

Stored size: 1.51 KB

Contents

[
    {
        "description": "by int",
        "schema": {"divisibleBy": 2},
        "tests": [
            {
                "description": "int by int",
                "data": 10,
                "valid": true
            },
            {
                "description": "int by int fail",
                "data": 7,
                "valid": false
            },
            {
                "description": "ignores non-numbers",
                "data": "foo",
                "valid": true
            }
        ]
    },
    {
        "description": "by number",
        "schema": {"divisibleBy": 1.5},
        "tests": [
            {
                "description": "zero is divisible by anything (except 0)",
                "data": 0,
                "valid": true
            },
            {
                "description": "4.5 is divisible by 1.5",
                "data": 4.5,
                "valid": true
            },
            {
                "description": "35 is not divisible by 1.5",
                "data": 35,
                "valid": false
            }
        ]
    },
    {
        "description": "by small number",
        "schema": {"divisibleBy": 0.0001},
        "tests": [
            {
                "description": "0.0075 is divisible by 0.0001",
                "data": 0.0075,
                "valid": true
            },
            {
                "description": "0.00751 is not divisible by 0.0001",
                "data": 0.00751,
                "valid": false
            }
        ]
    }
]

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
rj_schema-1.0.5 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-1.0.4 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-1.0.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-1.0.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-1.0.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-1.0.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.2.6 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.2.5 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.2.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.2.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.2.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
json_schemer-0.2.9 JSON-Schema-Test-Suite/tests/draft3/divisibleBy.json
json_schemer-0.2.8 JSON-Schema-Test-Suite/tests/draft3/divisibleBy.json
json_schemer-0.2.7 JSON-Schema-Test-Suite/tests/draft3/divisibleBy.json
rj_schema-0.2.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.1.4 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.1.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.1.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.1.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json
rj_schema-0.1.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json