1{ 2 "$schema": "https://raw.githubusercontent.com/unicode-org/message-format-wg/main/test/schemas/v0/tests.schema.json", 3 "scenario": "Integer function", 4 "description": "The built-in formatter for integers.", 5 "defaultTestProperties": { 6 "locale": "en-US" 7 }, 8 "tests": [ 9 { 10 "src": "hello {4.2 :integer}", 11 "exp": "hello 4" 12 }, 13 { 14 "src": "hello {-4.20 :integer}", 15 "exp": "hello -4" 16 }, 17 { 18 "src": "hello {0.42e+1 :integer}", 19 "exp": "hello 4" 20 }, 21 { 22 "src": ".input {$foo :integer} .match $foo 1 {{one}} * {{other}}", 23 "params": [ 24 { 25 "name": "foo", 26 "value": 1.2 27 } 28 ], 29 "exp": "one" 30 } 31 ] 32} 33