mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
eed44f448f
commit_hash:a80884f8d89a14490cb02e5278507f93ef7fb589
200 lines
3.4 KiB
JSON
200 lines
3.4 KiB
JSON
{
|
|
"cases": [
|
|
{
|
|
"expression": "@{'abcd'}",
|
|
"expected": {
|
|
"type": "string",
|
|
"value": "abcd"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{\"abcd\"}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": ""
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'This\\'s a string'}",
|
|
"expected": {
|
|
"type": "string",
|
|
"value": "This's a string"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'This's a string'}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": ""
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'This is a string}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": ""
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{This is a string'}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": ""
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'\\'}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": "Error tokenizing '@{'\\'}'."
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'\\a'}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": "Incorrect string escape"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'\\\\'}",
|
|
"expected": {
|
|
"type": "string",
|
|
"value": "\\"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'\\''}",
|
|
"expected": {
|
|
"type": "string",
|
|
"value": "'"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'\\@{123}'}",
|
|
"expected": {
|
|
"type": "string",
|
|
"value": "@{123}"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'\\@'}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": "Incorrect string escape"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'a@bc.de'}",
|
|
"expected": {
|
|
"type": "string",
|
|
"value": "a@bc.de"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'@{ Hello there'}",
|
|
"expected": {
|
|
"type": "error",
|
|
"value": "Error tokenizing '@{'@{ Hello there'}'."
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
},
|
|
{
|
|
"expression": "@{'\\@{ Hello there'}",
|
|
"expected": {
|
|
"type": "string",
|
|
"value": "@{ Hello there"
|
|
},
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
]
|
|
}
|
|
]
|
|
}
|