jsonlogic-hs-0.1.0.0: test/community/string/cat.json
[
"Basic Concatenation",
{
"description": "Cat with single string argument",
"rule": { "cat": "ice" },
"data": null,
"result": "ice"
},
{
"description": "Cat with array of single string",
"rule": { "cat": ["ice"] },
"data": null,
"result": "ice"
},
{
"description": "Cat with two strings",
"rule": { "cat": ["ice", "cream"] },
"data": null,
"result": "icecream"
},
"Type Coercion",
{
"description": "Cat with numbers",
"rule": { "cat": [1, 2] },
"data": null,
"result": "12"
},
{
"description": "Cat with mixed types",
"rule": { "cat": ["Robocop", 2] },
"data": null,
"result": "Robocop2"
},
"Multiple Arguments",
{
"description": "Cat with multiple arguments",
"rule": { "cat": ["we all scream for ", "ice", "cream"] },
"data": null,
"result": "we all scream for icecream"
},
"Edge Cases",
{
"description": "Cat with no arguments returns empty string",
"rule": { "cat": [] },
"data": null,
"result": ""
},
{
"description": "Cat with null values",
"rule": { "cat": [null, "test", null] },
"data": null,
"result": "test"
},
{
"description": "Cat with boolean values",
"rule": { "cat": [true, false, "test"] },
"data": null,
"result": "truefalsetest"
}
]