{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "reverse-numbers",
      "spotlight": true,
      "description": "A list of numbers is returned in reverse order.",
      "template": "{{ xs | reverse }}",
      "context": {
        "xs": [
          1,
          2,
          3
        ]
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[3,2,1]"
      }
    },
    {
      "name": "reverse-strings",
      "spotlight": true,
      "description": "A list of strings is returned in reverse order.",
      "template": "{{ xs | reverse }}",
      "context": {
        "xs": [
          "a",
          "b",
          "c"
        ]
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[\"c\",\"b\",\"a\"]"
      }
    },
    {
      "name": "reverse-non-list-is-null",
      "description": "reverse operates only on lists; a string input yields null.",
      "template": "{{ x | reverse }}",
      "context": {
        "x": "abc"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "null"
      }
    },
    {
      "name": "reverse-with-arg-is-error",
      "description": "Any argument is an arity error.",
      "template": "{{ xs | reverse: \"x\" }}",
      "context": {
        "xs": [
          1
        ]
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    }
  ]
}
