
functions.type.isBoolean.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of histone-acceptance-test-cases
Show all versions of histone-acceptance-test-cases
This artifact stores acceptance test cases for all histone implementations (histone-java, histone-javascript).
The newest version!
[{
"name": "type.isBoolean",
"cases": [{
"input": "a {{undefined.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{null.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{true.isBoolean()}} b",
"expectedResult": "a true b"
}, {
"input": "a {{false.isBoolean()}} b",
"expectedResult": "a true b"
}, {
"input": "a {{\"string\".isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{123.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{123.8.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{.123.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{0.123.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{123E-3.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{-123.8.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{-.123.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{-0.123.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{-123E-3.isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{[1, 2, 3].isBoolean()}} b",
"expectedResult": "a false b"
}, {
"input": "a {{[\"foo\": \"bar\"].isBoolean()}} b",
"expectedResult": "a false b"
}]
}]