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

31 lines
723 B
JSON

{
"expression": ["match", ["get", "x"], 0, "match", "otherwise"],
"inputs": [
[{}, {"properties": {"x": 0}}],
[{}, {"properties": {"x": 1}}],
[{}, {"properties": {"x": 0.5}}],
[{}, {"properties": {"x": "0"}}],
[{}, {"properties": {"x": false}}],
[{}, {"properties": {"x": null}}],
[{}, {"properties": {}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "string"
},
"outputs": [
"match",
"otherwise",
"otherwise",
"otherwise",
"otherwise",
"otherwise",
"otherwise"
],
"serialized": ["match", ["get", "x"], 0, "match", "otherwise"]
}
}