Files
man-y eed44f448f Mark flutter platform supported tests
commit_hash:a80884f8d89a14490cb02e5278507f93ef7fb589
2025-01-13 16:09:03 +03:00

117 lines
2.4 KiB
JSON

{
"cases": [
{
"expression": "@{undefinedFunc()}",
"expected": {
"type": "error",
"value": "Failed to evaluate [undefinedFunc()]. Unknown function name: undefinedFunc."
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{unknownFunc(dict)}",
"expected": {
"type": "error",
"value": "Failed to evaluate [unknownFunc(<dict>)]. Unknown function name: unknownFunc."
},
"variables": [
{
"type": "dict",
"name": "dict",
"value": {}
}
],
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{round()}",
"expected": {
"type": "error",
"value": "Failed to evaluate [round()]. Exactly 1 argument(s) expected."
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{round('string')}",
"expected": {
"type": "error",
"value": "Failed to evaluate [round('string')]. Invalid argument type: expected Number, got String."
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{round(dict)}",
"expected": {
"type": "error",
"value": "Failed to evaluate [round(<dict>)]. Invalid argument type: expected Number, got Dict."
},
"variables": [
{
"name": "dict",
"type": "dict",
"value": {}
}
],
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{round(1.5, 2.5)}",
"expected": {
"type": "error",
"value": "Failed to evaluate [round(1.5, 2.5)]. Exactly 1 argument(s) expected."
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{getOptDictFromDict(dict)}",
"expected": {
"type": "error",
"value": "Failed to evaluate [getOptDictFromDict(<dict>)]. At least 2 argument(s) expected."
},
"variables": [
{
"name": "dict",
"type": "dict",
"value": {}
}
],
"platforms": [
"android",
"ios",
"web",
"flutter"
]
}
]
}