{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "times-integers",
      "spotlight": true,
      "description": "times multiplies an integer input by its integer argument via {{ n | times: 3 }}.",
      "template": "{{ n | times: 3 }}",
      "context": {
        "n": 4
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "12"
      }
    },
    {
      "name": "times-fractional-result",
      "spotlight": true,
      "description": "Multiplying by a decimal can yield a fractional result.",
      "template": "{{ n | times: 1.5 }}",
      "context": {
        "n": 3
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "4.5"
      }
    },
    {
      "name": "times-non-numeric-input-is-null",
      "description": "A non-numeric input is a soft failure, so times yields null.",
      "template": "{{ n | times: 3 }}",
      "context": {
        "n": "x"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "null"
      }
    },
    {
      "name": "times-non-numeric-argument-is-null",
      "description": "A non-numeric argument is a soft failure, so times yields null.",
      "template": "{{ n | times: \"x\" }}",
      "context": {
        "n": 5
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "null"
      }
    },
    {
      "name": "times-zero-args-is-error",
      "description": "Calling times with zero arguments produces an arity error.",
      "template": "{{ n | times }}",
      "context": {
        "n": 5
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    }
  ]
}
