mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
43 lines
789 B
JSON
43 lines
789 B
JSON
{
|
|
"description": "Decl variable with expression, using previously declared variable.",
|
|
"div_data": {
|
|
"card": {
|
|
"log_id": "decl_expressions",
|
|
"variables": [
|
|
{
|
|
"name": "val",
|
|
"type": "integer",
|
|
"value": "@{val2 + 2}"
|
|
},
|
|
{
|
|
"name": "val2",
|
|
"type": "integer",
|
|
"value": "@{val + 1}"
|
|
}
|
|
],
|
|
"states": [
|
|
{
|
|
"state_id": 0,
|
|
"div": {
|
|
"type": "text",
|
|
"text": "text"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"cases": [
|
|
{
|
|
"expected": [
|
|
{
|
|
"type": "error",
|
|
"value": "Variable 'val' is missing. Expression: @{val + 1}"
|
|
}
|
|
],
|
|
"platforms": [
|
|
"ios"
|
|
]
|
|
}
|
|
]
|
|
}
|