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

25 lines
533 B
JSON

{
"expression": ["length", ["get", "x"]],
"inputs": [
[{}, {"properties": {"x": "a string"}}],
[{}, {"properties": {"x": []}}],
[{}, {"properties": {"x": 0}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "number"
},
"outputs": [
8,
0,
{
"error": "Expected value to be of type string or array, but found number instead."
}
],
"serialized": ["length", ["get", "x"]]
}
}