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

functions.string.strip.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": "string.strip",
	"cases": [{
		"input": "a {{\" test\".strip()}} b",
		"expectedResult": "a test b"
	}, {
		"input": "a {{\"test \".strip()}} b",
		"expectedResult": "a test b"
	}, {
		"input": "a {{\" test \".strip()}} b",
		"expectedResult": "a test b"
	}, {
		"input": "a {{\"\\ntest\\n\".strip(\"\\n\")}} b",
		"expectedResult": "a test b"
	}, {
		"input": "a {{\"\\n\\r\\ftest\\n\".strip(\"\\n\\r\\f\")}} b",
		"expectedResult": "a test b"
	}, {
		"input": "a {{\"\\n\\r\\ttest\\t\\r\\n\".strip()}} b",
		"expectedResult": "a test b"
	}, {
		"input": "a {{\"\\ntest\\r\\f\\n\".strip(\"\\n\\r\\f\")}} b",
		"expectedResult": "a test b"
	}, {
		"input": "a {{\"123t5es5t098\".strip(\"1234567890\")}} b",
		"expectedResult": "a t5es5t b"
	}, {
		"input": "a {{\" 121test212 \".strip('1','2')}} b",
		"expectedResult": "a  121test212  b"
	}, {
		"input": "a {{\"121test3212\".strip('12',3)}} b",
		"expectedResult": "a test3 b"
	}, {
		"input": "a {{\"121test212\".strip('1','2')}} b",
		"expectedResult": "a test b"
	}, {
		"input": "a {{\"121test212\".strip(1,'2')}} b",
		"expectedResult": "a 121test21 b"
	}, {
		"input": "a {{\"121test212\".strip(['1','2'])}} b",
		"expectedResult": "a 121test212 b"
	}, {
		"input": "a {{\"121test212\".strip([1,'2'])}} b",
		"expectedResult": "a 121test212 b"
	}]
}]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy