{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "uniq-strings",
      "spotlight": true,
      "description": "Duplicate string elements are removed, keeping the first occurrence's order.",
      "template": "{{ xs | uniq }}",
      "context": {
        "xs": [
          "a",
          "b",
          "a",
          "c",
          "b"
        ]
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[\"a\",\"b\",\"c\"]"
      }
    },
    {
      "name": "uniq-numbers",
      "spotlight": true,
      "description": "Duplicate numeric elements are removed.",
      "template": "{{ xs | uniq }}",
      "context": {
        "xs": [
          1,
          1,
          2,
          3,
          3
        ]
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[1,2,3]"
      }
    },
    {
      "name": "uniq-non-list-is-null",
      "description": "uniq operates only on lists; a string input yields null.",
      "template": "{{ x | uniq }}",
      "context": {
        "x": "aabb"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "null"
      }
    },
    {
      "name": "uniq-with-arg-is-error",
      "description": "Any argument is an arity error.",
      "template": "{{ xs | uniq: \"x\" }}",
      "context": {
        "xs": [
          1
        ]
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    }
  ]
}
