Files
divkit/test_data/expression_test_data/operations_comparison_datetime.json
T
man-y eed44f448f Mark flutter platform supported tests
commit_hash:a80884f8d89a14490cb02e5278507f93ef7fb589
2025-01-13 16:09:03 +03:00

161 lines
3.0 KiB
JSON

{
"cases": [
{
"expression": "@{parseUnixTime(0) < parseUnixTime(0)}",
"expected": {
"type": "boolean",
"value": false
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(0) < parseUnixTime(100)}",
"expected": {
"type": "boolean",
"value": true
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(100) < parseUnixTime(0)}",
"expected": {
"type": "boolean",
"value": false
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(0) <= parseUnixTime(0)}",
"expected": {
"type": "boolean",
"value": true
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(0) <= parseUnixTime(100)}",
"expected": {
"type": "boolean",
"value": true
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(100) <= parseUnixTime(0)}",
"expected": {
"type": "boolean",
"value": false
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(0) > parseUnixTime(0)}",
"expected": {
"type": "boolean",
"value": false
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(0) > parseUnixTime(100)}",
"expected": {
"type": "boolean",
"value": false
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(100) > parseUnixTime(0)}",
"expected": {
"type": "boolean",
"value": true
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(0) >= parseUnixTime(0)}",
"expected": {
"type": "boolean",
"value": true
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(0) >= parseUnixTime(100)}",
"expected": {
"type": "boolean",
"value": false
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"expression": "@{parseUnixTime(100) >= parseUnixTime(0)}",
"expected": {
"type": "boolean",
"value": true
},
"platforms": [
"android",
"ios",
"web",
"flutter"
]
}
]
}