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

57 lines
1.0 KiB
JSON

{
"expression": [
"format",
["get", "a"],
{},
["get", "1"],
{},
["get", "true"],
{}
],
"inputs": [[{}, {"properties": {"a": "a", "1": 1, "true": true}}]],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "formatted"
},
"outputs": [
{
"sections": [
{
"text": "a",
"image": null,
"scale": null,
"fontStack": null,
"textColor": null
},
{
"text": "1",
"image": null,
"scale": null,
"fontStack": null,
"textColor": null
},
{
"text": "true",
"image": null,
"scale": null,
"fontStack": null,
"textColor": null
}
]
}
],
"serialized": [
"format",
["get", "a"],
{},
["get", "1"],
{},
["get", "true"],
{}
]
}
}