{
  "schema": "https://bars.commonsware.com/conformance/schema/render-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "strip_newlines-removes-LF",
      "spotlight": true,
      "description": "All LF characters are removed.",
      "template": "[{{ phrase | strip_newlines }}]",
      "context": {
        "phrase": "a\nb\nc"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[abc]"
      }
    },
    {
      "name": "strip_newlines-removes-CR-LF",
      "spotlight": true,
      "description": "Both CR and LF are removed; other whitespace stays.",
      "template": "[{{ phrase | strip_newlines }}]",
      "context": {
        "phrase": "a\r\nb \tc"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[ab \tc]"
      }
    },
    {
      "name": "strip_newlines-no-newlines",
      "description": "Input without newlines passes through unchanged.",
      "template": "[{{ phrase | strip_newlines }}]",
      "context": {
        "phrase": "abc"
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[abc]"
      }
    },
    {
      "name": "strip_newlines-empty-string",
      "description": "Empty input stays empty.",
      "template": "[{{ phrase | strip_newlines }}]",
      "context": {
        "phrase": ""
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "[]"
      }
    },
    {
      "name": "strip_newlines-with-arg-is-error",
      "description": "Any argument is an arity error.",
      "template": "{{ phrase | strip_newlines: \"x\" }}",
      "context": {
        "phrase": "hi"
      },
      "expect": {
        "kind": "error",
        "errorCode": "KB-2002"
      }
    }
  ]
}
