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

22 lines
581 B
JSON

{
"expression": ["to-string", ["get", "x"]],
"inputs": [
[{}, {"properties": {"x": 1}}],
[{}, {"properties": {"x": false}}],
[{}, {"properties": {"x": null}}],
[{}, {"properties": {"x": "string"}}],
[{}, {"properties": {"x": [1, 2]}}],
[{}, {"properties": {"x": {"y": 1}}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "string"
},
"outputs": ["1", "false", "", "string", "[1,2]", "{\"y\":1}"],
"serialized": ["to-string", ["get", "x"]]
}
}