{
  "$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": {
    "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 {{one}} * {{other}}",
      "params": [
        {
          "name": "foo",
          "value": 1.2
        }
      ],
      "exp": "one"
    }
  ]
}
