{
  "$schema": "https://raw.githubusercontent.com/unicode-org/message-format-wg/main/test/schemas/v0/tests.schema.json",
  "scenario": "String function",
  "description": "The built-in formatter for strings.",
  "defaultTestProperties": {
    "locale": "en-US"
  },
  "tests": [
    {
      "src": ".input {$foo :string} .match $foo |1| {{one}} * {{other}}",
      "params": [
        {
          "name": "foo",
          "value": "1"
        }
      ],
      "exp": "one"
    },
    {
      "src": ".input {$foo :string} .match $foo 1 {{one}} * {{other}}",
      "params": [
        {
          "name": "foo",
          "value": 1
        }
      ],
      "exp": "one"
    },
    {
      "src": ".input {$foo :string} .match $foo 1 {{one}} * {{other}}",
      "params": [
        {
          "name": "foo",
          "value": null
        }
      ],
      "exp": "other"
    },
    {
      "src": ".input {$foo :string} .match $foo 1 {{one}} * {{other}}",
      "exp": "other",
      "expErrors": [
        {
          "type": "unresolved-variable"
        }
      ]
    }
  ]
}
