Files
MapLibreParticleLab/metrics/integration/expression-tests/less_or_equal/string-and-value/test.json
2023-03-25 14:46:49 +01:00

27 lines
695 B
JSON

{
"expression": ["<", ["string", ["get", "x"]], ["get", "y"]],
"inputs": [
[{}, {"properties": {"x": "1", "y": "1"}}],
[{}, {"properties": {"x": "1", "y": 1}}],
[{}, {"properties": {"x": 1, "y": "1"}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "boolean"
},
"outputs": [
false,
{
"error": "Expected value to be of type string, but found number instead."
},
{
"error": "Expected value to be of type string, but found number instead."
}
],
"serialized": ["<", ["string", ["get", "x"]], ["string", ["get", "y"]]]
}
}