All Downloads are FREE. Search and download functionalities are using the official Maven repository.

functions.type.isBoolean.json Maven / Gradle / Ivy

Go to download

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"
	}]
}]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy