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