[
  {
    "description": "by int",
    "database": {
      "schemas": [
        {
          "multipleOf": 2,
          "$id": "multipleOf_0_0"
        }
      ]
    },
    "tests": [
      {
        "description": "int by int",
        "data": 10,
        "schema_id": "multipleOf_0_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "int by int fail",
        "data": 7,
        "schema_id": "multipleOf_0_0",
        "action": "validate",
        "expect": {
          "success": false
        }
      },
      {
        "description": "ignores non-numbers",
        "data": "foo",
        "schema_id": "multipleOf_0_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      }
    ]
  },
  {
    "description": "by number",
    "database": {
      "schemas": [
        {
          "multipleOf": 1.5,
          "$id": "multipleOf_1_0"
        }
      ]
    },
    "tests": [
      {
        "description": "zero is multiple of anything",
        "data": 0,
        "schema_id": "multipleOf_1_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "4.5 is multiple of 1.5",
        "data": 4.5,
        "schema_id": "multipleOf_1_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "35 is not multiple of 1.5",
        "data": 35,
        "schema_id": "multipleOf_1_0",
        "action": "validate",
        "expect": {
          "success": false
        }
      }
    ]
  },
  {
    "description": "by small number",
    "database": {
      "schemas": [
        {
          "multipleOf": 0.0001,
          "$id": "multipleOf_2_0"
        }
      ]
    },
    "tests": [
      {
        "description": "0.0075 is multiple of 0.0001",
        "data": 0.0075,
        "schema_id": "multipleOf_2_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "0.00751 is not multiple of 0.0001",
        "data": 0.00751,
        "schema_id": "multipleOf_2_0",
        "action": "validate",
        "expect": {
          "success": false
        }
      }
    ]
  },
  {
    "description": "small multiple of large integer",
    "database": {
      "schemas": [
        {
          "type": "integer",
          "multipleOf": 1e-8,
          "$id": "multipleOf_3_0"
        }
      ]
    },
    "tests": [
      {
        "description": "any integer is a multiple of 1e-8",
        "data": 12391239123,
        "schema_id": "multipleOf_3_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      }
    ]
  }
]