{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "url_escape-space-percent-encoded",
      "spotlight": true,
      "description": "Space becomes %20 (NOT plus).",
      "template": "{{{ q | url_escape }}}",
      "context": {
        "q": "hello world"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "hello%20world"
      }
    },
    {
      "name": "url_escape-reserved-preserved",
      "spotlight": true,
      "description": "Reserved characters per RFC 3986 are preserved literally.",
      "template": "{{{ q | url_escape }}}",
      "context": {
        "q": "a:/?#[]@!$&'()*+,;=b"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "a:/?#[]@!$&'()*+,;=b"
      }
    },
    {
      "name": "url_escape-non-reserved-symbol-encoded",
      "description": "Non-reserved, non-unreserved characters are percent-encoded.",
      "template": "{{{ q | url_escape }}}",
      "context": {
        "q": "a\"b<c>d"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "a%22b%3Cc%3Ed"
      }
    },
    {
      "name": "url_escape-utf8-multibyte",
      "description": "Non-ASCII characters are percent-encoded as UTF-8 (uppercase hex).",
      "template": "{{{ q | url_escape }}}",
      "context": {
        "q": "caf\u00e9"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "caf%C3%A9"
      }
    },
    {
      "name": "url_escape-empty",
      "description": "Empty input passes through.",
      "template": "{{{ q | url_escape }}}",
      "context": {
        "q": ""
      },
      "expect": {
        "kind": "output",
        "expectedOutput": ""
      }
    },
    {
      "name": "url_escape-with-arg-is-error",
      "description": "Any argument is an arity error.",
      "template": "{{ q | url_escape: \"x\" }}",
      "context": {
        "q": "hi"
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    }
  ]
}
