{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "append-string-literal",
      "spotlight": true,
      "description": "Append a string literal to a string value via {{ greeting | append: \"!\" }}.",
      "template": "{{ greeting | append: \"!\" }}",
      "context": {
        "greeting": "hello"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "hello!"
      }
    },
    {
      "name": "append-identifier-arg",
      "description": "Append a value from the context via {{ greeting | append: suffix }}.",
      "template": "{{ greeting | append: suffix }}",
      "context": {
        "greeting": "hello",
        "suffix": "!"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "hello!"
      }
    },
    {
      "name": "append-numeric-arg-coerced",
      "description": "Append a numeric argument coerced to string via {{ value | append: 42 }}.",
      "template": "{{ value | append: 42 }}",
      "context": {
        "value": "x"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "x42"
      }
    },
    {
      "name": "append-null-arg",
      "description": "Append a null argument (renders as \"null\" string) via {{ value | append: null }}.",
      "template": "{{ value | append: null }}",
      "context": {
        "value": "x"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "xnull"
      }
    },
    {
      "name": "append-zero-args-is-error",
      "description": "Calling append with zero arguments produces an arity error.",
      "template": "{{ greeting | append }}",
      "context": {
        "greeting": "hi"
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    },
    {
      "name": "append-two-args-is-error",
      "description": "Calling append with two arguments produces an arity error.",
      "template": "{{ greeting | append: \"a\" \"b\" }}",
      "context": {
        "greeting": "hi"
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    },
    {
      "name": "append-chained-after-upcase",
      "spotlight": true,
      "description": "Chaining append after upcase: {{ greeting | upcase | append: \"!\" }}.",
      "template": "{{ greeting | upcase | append: \"!\" }}",
      "context": {
        "greeting": "hello"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "HELLO!"
      }
    },
    {
      "name": "append-chained-before-upcase",
      "description": "Chaining append before upcase: {{ greeting | append: \"!\" | upcase }}.",
      "template": "{{ greeting | append: \"!\" | upcase }}",
      "context": {
        "greeting": "hello"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "HELLO!"
      }
    }
  ]
}
