[
  {
    "id": "$hour baseline",
    "operator": "$hour",
    "kind": "baseline",
    "operand": "all",
    "expression": {
      "$hour": {
        "$toDate": "2024-01-02T03:04:05.006Z"
      }
    },
    "input": {},
    "srotax": {
      "bson": "{\"v\": {\"$numberInt\": \"3\"}}",
      "present": true
    }
  },
  {
    "id": "$hour input: null",
    "operator": "$hour",
    "kind": "null",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": null
    },
    "srotax": {
      "bson": "{\"v\": null}",
      "present": true
    }
  },
  {
    "id": "$hour input: missing",
    "operator": "$hour",
    "kind": "missing",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {},
    "srotax": {
      "bson": "{\"v\": null}",
      "present": true
    }
  },
  {
    "id": "$hour input: zero",
    "operator": "$hour",
    "kind": "zero",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": 0
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: negative",
    "operator": "$hour",
    "kind": "negative",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": -2
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: decimal",
    "operator": "$hour",
    "kind": "decimal",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": 2.5
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: numeric string",
    "operator": "$hour",
    "kind": "numeric string",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": "12"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Cannot convert value to date: 12"
    }
  },
  {
    "id": "$hour input: text",
    "operator": "$hour",
    "kind": "text",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": "hello"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Cannot convert value to date: hello"
    }
  },
  {
    "id": "$hour input: empty string",
    "operator": "$hour",
    "kind": "empty string",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": ""
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Cannot convert value to date: "
    }
  },
  {
    "id": "$hour input: boolean",
    "operator": "$hour",
    "kind": "boolean",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": true
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: false",
    "operator": "$hour",
    "kind": "false",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": false
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: typed date",
    "operator": "$hour",
    "kind": "typed date",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": {
        "$date": "2026-01-15T15:00:00Z"
      }
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberInt\": \"15\"}}",
      "present": true
    }
  },
  {
    "id": "$hour input: decimal128",
    "operator": "$hour",
    "kind": "decimal128",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": {
        "$numberDecimal": "1.25"
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: empty array",
    "operator": "$hour",
    "kind": "empty array",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": []
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: numeric array",
    "operator": "$hour",
    "kind": "numeric array",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": [
        1,
        2,
        3
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: mixed array",
    "operator": "$hour",
    "kind": "mixed array",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": [
        1,
        null,
        "x",
        3
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: nested array",
    "operator": "$hour",
    "kind": "nested array",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": [
        [
          1,
          2
        ],
        [
          3
        ]
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: empty object",
    "operator": "$hour",
    "kind": "empty object",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": {}
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: object",
    "operator": "$hour",
    "kind": "object",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": {
        "x": 1
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  },
  {
    "id": "$hour input: ISO date string",
    "operator": "$hour",
    "kind": "ISO date string",
    "operand": "input",
    "expression": {
      "$hour": "$probe"
    },
    "input": {
      "probe": "2026-01-15T15:00:00Z"
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberInt\": \"15\"}}",
      "present": true
    }
  },
  {
    "id": "$hour empty arguments",
    "operator": "$hour",
    "kind": "empty arguments",
    "operand": "all",
    "expression": {
      "$hour": []
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "One date required"
    }
  },
  {
    "id": "$hour unknown option",
    "operator": "$hour",
    "kind": "unknown option",
    "operand": "all",
    "expression": {
      "$hour": {
        "unexpected": 1
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "Expected a date; convert strings with $toDate"
    }
  }
]
