{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "floor-rounds-down",
      "spotlight": true,
      "description": "floor rounds a positive decimal down to the previous integer via {{ n | floor }}.",
      "template": "{{ n | floor }}",
      "context": {
        "n": 1.8
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "1"
      }
    },
    {
      "name": "floor-negative-decimal",
      "spotlight": true,
      "description": "floor of a negative decimal rounds away from zero.",
      "template": "{{ n | floor }}",
      "context": {
        "n": -1.2
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "-2"
      }
    },
    {
      "name": "floor-integer-unchanged",
      "description": "floor of an integer is unchanged.",
      "template": "{{ n | floor }}",
      "context": {
        "n": 5
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "5"
      }
    },
    {
      "name": "floor-non-numeric-input-is-null",
      "description": "A non-numeric input is a soft failure, so floor yields null.",
      "template": "{{ n | floor }}",
      "context": {
        "n": "x"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "null"
      }
    },
    {
      "name": "floor-with-argument-is-error",
      "description": "Calling floor with an argument produces an arity error.",
      "template": "{{ n | floor: 1 }}",
      "context": {
        "n": 5
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    }
  ]
}
