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

19 lines
481 B
JSON

{
"expression": ["!=", ["number", ["get", "x"]], ["get", "y"]],
"inputs": [
[{}, {"properties": {"x": 1, "y": 1}}],
[{}, {"properties": {"x": 1, "y": "1"}}],
[{}, {"properties": {"x": 1, "y": 2}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "boolean"
},
"outputs": [false, true, true],
"serialized": ["!=", ["number", ["get", "x"]], ["get", "y"]]
}
}