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

27 lines
743 B
JSON

{
"expression": [
"boolean",
["in", ["get", "needle"], ["get", "haystack"]]
],
"inputs": [
[{}, {"properties": {"needle": {}, "haystack": [9, 8, 7]}}],
[{}, {"properties": {"needle": {}, "haystack": "helloworld"}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "boolean"
},
"outputs": [
{"error":"Expected first argument to be of type boolean, string or number, but found object instead."},
{"error":"Expected first argument to be of type boolean, string or number, but found object instead."}
],
"serialized": [
"boolean",
["in", ["get", "needle"], ["get", "haystack"]]
]
}
}