Files
2023-03-25 14:46:49 +01:00

29 lines
731 B
JSON

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