{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "concat-numbers",
      "spotlight": true,
      "description": "The argument list's elements are appended to the input list's elements.",
      "template": "{{ a | concat: b }}",
      "context": {
        "a": [
          1,
          2
        ],
        "b": [
          3,
          4
        ]
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[1,2,3,4]"
      }
    },
    {
      "name": "concat-strings",
      "spotlight": true,
      "description": "Concatenation preserves order across both lists.",
      "template": "{{ a | concat: b }}",
      "context": {
        "a": [
          "x"
        ],
        "b": [
          "y",
          "z"
        ]
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[\"x\",\"y\",\"z\"]"
      }
    },
    {
      "name": "concat-input-non-list-is-null",
      "description": "A non-list input does not match the transform's shape, so the result is null.",
      "template": "{{ a | concat: b }}",
      "context": {
        "a": "hi",
        "b": [
          1
        ]
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "null"
      }
    },
    {
      "name": "concat-arg-non-list-is-null",
      "description": "A non-list argument is a soft failure, so concat yields null.",
      "template": "{{ a | concat: b }}",
      "context": {
        "a": [
          1
        ],
        "b": "x"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "null"
      }
    },
    {
      "name": "concat-zero-args-is-error",
      "description": "Zero arguments is an arity error.",
      "template": "{{ a | concat }}",
      "context": {
        "a": [
          1
        ]
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    },
    {
      "name": "concat-two-args-is-error",
      "description": "Two arguments is an arity error.",
      "template": "{{ a | concat: b b }}",
      "context": {
        "a": [
          1
        ],
        "b": [
          2
        ]
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    }
  ]
}
