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

29 lines
787 B
JSON

{
"expression": [
"boolean",
["in", ["get", "needle"], ["get", "haystack"]]
],
"inputs": [
[{}, {"properties": {"needle": 1, "haystack": 123}}],
[{}, {"properties": {"needle": "foo", "haystack": {}}}],
[{}, {"properties": {"needle": "foo", "haystack": null}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "boolean"
},
"outputs": [
{"error":"Expected second argument to be of type array or string, but found number instead."},
{"error":"Expected second argument to be of type array or string, but found object instead."},
false
],
"serialized": [
"boolean",
["in", ["get", "needle"], ["get", "haystack"]]
]
}
}