lengthSorter
should be a function.
+ testString: assert(typeof lengthSorter == 'function', 'lengthSorter
should be a function.');
+ - text: lengthSorter(["Here", "are", "some", "sample", "strings", "to", "be", "sorted"])
should return a array.
+ testString: assert(Array.isArray(lengthSorter(["Here", "are", "some", "sample", "strings", "to", "be", "sorted"])), 'lengthSorter(["Here", "are", "some", "sample", "strings", "to", "be", "sorted"])
should return a array.');
+ - text: lengthSorter(["Here", "are", "some", "sample", "strings", "to", "be", "sorted"])
should return ["strings", "sample", "sorted", "Here", "some", "are", "be", "to"]
.
+ testString: assert.deepEqual(lengthSorter(["Here", "are", "some", "sample", "strings", "to", "be", "sorted"]), ["strings", "sample", "sorted", "Here", "some", "are", "be", "to"], 'lengthSorter(["Here", "are", "some", "sample", "strings", "to", "be", "sorted"])
should return ["strings", "sample", "sorted", "Here", "some", "are", "be", "to"]
.');
+ - text: lengthSorter(["I", "hope", "your", "day", "is", "going", "good", "?"])
should return ["going", "good", "hope", "your", "day", "is", "?","I"]
.
+ testString: assert.deepEqual(lengthSorter(["I", "hope", "your", "day", "is", "going", "good", "?"]), ["going", "good", "hope", "your", "day", "is", "?","I"], 'lengthSorter(["I", "hope", "your", "day", "is", "going", "good", "?"])
should return ["going", "good", "hope", "your", "day", "is", "?","I"]
.');
+ - text: lengthSorter(["Mine", "is", "going", "great"])
should return ["going", "great", "Mine", "is"]
.
+ testString: assert.deepEqual(lengthSorter(["Mine", "is", "going", "great"]), ["going", "great", "Mine", "is"], 'lengthSorter(["Mine", "is", "going", "great"])
should return ["going", "great", "Mine", "is"]
.');
+ - text: lengthSorter(["Have", "fun", "sorting", "!!"])
should return ["sorting", "Have", "fun", "!!"]
.
+ testString: assert.deepEqual(lengthSorter(["Have", "fun", "sorting", "!!"]), ["sorting", "Have", "fun", "!!"], 'lengthSorter(["Have", "fun", "sorting", "!!"])
should return ["sorting", "Have", "fun", "!!"]
.');
+ - text: lengthSorter(["Everthing", "is", "good", "!!"])
should return ["Everthing", "good", "!!", "is"]
.
+ testString: assert.deepEqual(lengthSorter(["Everthing", "is", "good", "!!"]), ["Everthing", "good", "!!", "is"], 'lengthSorter(["Everthing", "is", "good", "!!"])
should return ["Everthing", "good", "!!", "is"]
.');
+```
+
+