split
should be a function.
testString: assert(typeof split == 'function', 'split
should be a function.');
- text: split("hello")
should return a array.
testString: assert(Array.isArray(split("hello")), 'split("hello")
should return a array.');
- text: split("hello")
should return ["h", "e", "ll", "o"]
.
testString: assert.deepEqual(split("hello"), ["h", "e", "ll", "o"], 'split("hello")
should return ["h", "e", "ll", "o"]
.');
- text: split("commission")
should return ["c", "o", "mm", "i", "ss", "i", "o", "n"]
.
testString: assert.deepEqual(split("commission"), ["c", "o", "mm", "i", "ss", "i", "o", "n"], 'split("commission")
should return ["c", "o", "mm", "i", "ss", "i", "o", "n"]
.');
- text: split("ssss----====llloooo")
should return ["ssss", "----", "====", "lll", "oooo"]
.
testString: assert.deepEqual(split("ssss----====llloooo"), ["ssss", "----", "====", "lll", "oooo"], 'split("ssss----====llloooo")
should return ["ssss", "----", "====", "lll", "oooo"]
.');
- text: split("sssmmmaaammmaaat")
should return ["sss", "mmm", "aaa", "mmm", "aaa", "t"]
.
testString: assert.deepEqual(split("sssmmmaaammmaaat"), ["sss", "mmm", "aaa", "mmm", "aaa", "t"], 'split("sssmmmaaammmaaat")
should return ["sss", "mmm", "aaa", "mmm", "aaa", "t"]
.');
- text: split("gHHH5YY++///\")
should return ["g", "HHH", "5", "YY", "++", "///", "\\"]
.
testString: assert.deepEqual(split("gHHH5YY++///\\"), ["g", "HHH", "5", "YY", "++", "///", "\\"], 'split("gHHH5YY++///\")
should return ["g", "HHH", "5", "YY", "++", "///", "\\"]
.');
```