Files
MapLibreParticleLab/metrics/integration/expression-tests/constant-folding/evaluation-error/test.json
2023-03-25 14:46:49 +01:00

24 lines
589 B
JSON

{
"propertySpec": {
"type": "color",
"property-type": "data-driven",
"expression": {"parameters": ["zoom", "feature"]}
},
"expression": ["step", ["get", "x"], "black", 0, "invalid", 10, "blue"],
"inputs": [
[{}, {"properties": {"x": -1}}],
[{}, {"properties": {"x": 0}}],
[{}, {"properties": {"x": 5}}],
[{}, {"properties": {"x": 10}}],
[{}, {"properties": {"x": 11}}]
],
"expected": {
"compiled": {
"result": "error",
"errors": [
{"key": "[4]", "error": "Could not parse color from value 'invalid'"}
]
}
}
}