1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-12-12 07:57:26 +00:00
bramw_baserow/tests/cases/formula_runtime_cases.json
2023-08-04 14:29:34 +00:00

69 lines
1.4 KiB
JSON

{
"VALID_FORMULA_TESTS": [
{
"formula": "'test'",
"result": "test",
"context": {}
},
{
"formula": "1",
"result": 1,
"context": {}
},
{
"formula": "true",
"result": true,
"context": {}
},
{
"formula": "false",
"result": false,
"context": {}
},
{
"formula": "concat('a', 'b')",
"result": "ab",
"context": {}
},
{
"formula": "get('a')",
"result": "test",
"context": {
"a": "test"
}
},
{
"formula": "1 + 2",
"result": 3,
"context": {}
},
{
"formula": "get('a') + get('b')",
"result": 4,
"context": {"a": 1, "b": 3}
}
],
"INVALID_FORMULA_TESTS": [
{
"formula": "invalid()",
"context": {}
},
{
"formula": "1 + 'hello'",
"context": {}
},
{
"formula": "get(1,2)",
"context": {}
},
{
"formula": "concat()",
"context": {}
},
{
"formula": "concat('a')",
"context": {}
}
]
}