Files
MapLibreParticleLab/metrics/integration/expression-tests/number-format/currency/test.json
2023-03-25 14:46:49 +01:00

32 lines
697 B
JSON

{
"expression": [
"number-format",
123456.789,
{
"locale": ["get", "locale"],
"currency": ["get", "currency"]
}
],
"inputs": [
[{}, {"properties": {"locale": "en-US", "currency": "JPY"}}],
[{}, {"properties": {"locale": "en-US", "currency": "EUR"}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "string"
},
"outputs": ["¥123,457", "€123,456.79"],
"serialized": [
"number-format",
123456.789,
{
"locale": ["string", ["get", "locale"]],
"currency": ["string", ["get", "currency"]]
}
]
}
}