{
  "$schema": "https://raw.githubusercontent.com/unicode-org/message-format-wg/main/test/schemas/v0/tests.schema.json",
  "scenario": "Integer function",
  "description": "The built-in formatter for integers.",
  "defaultTestProperties": {
    "bidiIsolation": "none",
    "locale": "en-US"
  },
  "tests": [
    {
      "src": "hello {4.2 :integer}",
      "exp": "hello 4"
    },
    {
      "src": "hello {-4.20 :integer}",
      "exp": "hello -4"
    },
    {
      "src": "hello {0.42e+1 :integer}",
      "exp": "hello 4"
    },
    {
      "src": ".input {$foo :integer} .match $foo 1 {{=1}} * {{other}}",
      "params": [{ "name": "foo", "value": 1.2 }],
      "exp": "=1"
    },
    {
      "src": ".input {$foo :integer} .match $foo 1 {{=1}} one {{one}} * {{other}}",
      "params": [{ "name": "foo", "value": 1.2 }],
      "exp": "=1"
    },
    {
      "src": ".local $x = {1.25 :integer} .local $y = {$x :number} {{{$y}}}",
      "exp": "1"
    }
  ]
}
