mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
75618ebccd
9b62f7ca807ae444d47b513a570c8e1024e7a3b4
110 lines
2.3 KiB
JSON
110 lines
2.3 KiB
JSON
{
|
|
"cases": [
|
|
{
|
|
"expression": "@{undefinedFunc()}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": "Failed to evaluate [undefinedFunc()]. Unknown function name: undefinedFunc."
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{round()}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": "Failed to evaluate [round()]. Exactly 1 argument(s) expected."
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{round('string')}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": "Failed to evaluate [round('string')]. Invalid argument type: expected Number, got String."
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
]
|
|
},
|
|
{
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
}
|