Created
October 4, 2016 17:41
-
-
Save rickywid/76ceae27950f25f6bea8924b1865b5e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Results: | |
String.prototype.toAlternatingCase | |
should work for fixed tests (provided in the description) | |
✘ Expected: 'HELLO WORLD', instead got: ['H', 'E', 'L', 'L', 'O', ' ', 'W', 'O', 'R', 'L', 'D'] | |
✘ Expected: 'hello world', instead got: ['h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'] | |
✘ Expected: 'HELLO world', instead got: ['H', 'E', 'L', 'L', 'O', ' ', 'w', 'o', 'r', 'l', 'd'] | |
✘ Expected: 'hEllO wOrld', instead got: ['h', 'E', 'l', 'l', 'O', ' ', 'w', 'O', 'r', 'l', 'd'] | |
✘ Expected: '12345', instead got: ['1', '2', '3', '4', '5'] | |
✘ Expected: '1A2B3C4D5E', instead got: ['1', 'A', '2', 'B', '3', 'C', '4', 'D', '5', 'E'] | |
✘ Expected: 'sTRING.PROTOTYPE.TOaLTERNATINGcASE', instead got: ['s', 'T', 'R', 'I', 'N', 'G', '.', 'P', 'R', 'O', 'T', 'O', 'T', 'Y', 'P', 'E', '.', 'T', 'O', 'a', 'L', 'T', 'E', 'R', 'N', 'A', 'T', 'I', 'N', 'G', 'c', 'A', 'S', 'E'] | |
TypeError: "Hello World".toAlternatingCase(...).toAlternatingCase is not a function | |
at _ | |
at begin | |
at it | |
at _ | |
at /runner/frameworks/javascript/cw-2.js:179:21 | |
at Promise._execute | |
at Promise._resolveFromExecutor | |
at new Promise | |
at describe | |
at Object.handleError | |
at ContextifyScript.Script.runInThisContext | |
at Object.exports.runInThisContext | |
at Object.<anonymous> | |
Completed in 5ms | |
Completed in 9ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment