"gHHH5YY++///\"should be split as:
["g", "HHH", "5", "YY", "++", "///", "\" ];
split
should be a function.
testString: assert(typeof split == 'function');
- text: split("hello")
should return an array.
testString: assert(Array.isArray(split("hello")));
- text: split("hello")
should return ["h", "e", "ll", "o"]
.
testString: assert.deepEqual(split("hello"), ["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"]);
- text: split("ssss----====llloooo")
should return ["ssss", "----", "====", "lll", "oooo"]
.
testString: assert.deepEqual(split("ssss----====llloooo"), ["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"]);
- text: split("gHHH5YY++///\")
should return ["g", "HHH", "5", "YY", "++", "///", "\\"]
.
testString: assert.deepEqual(split("gHHH5YY++///\\"), ["g", "HHH", "5", "YY", "++", "///", "\\"]);
```