function wheatFromChaff(values) {
return values;
}
???
AssertionError [ERR_ASSERTION]: [ 2, -4, 6, -6 ] deepEqual [ -6, -4, 6, 2 ]
at doTest
at /home/codewarrior/index.js:18:9
at begin
at it
at /home/codewarrior/index.js:17:5
at /runner/frameworks/javascript/cw-2.js:152:11
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at describe
at /home/codewarrior/index.js:16:5
at /home/codewarrior/index.js:74:5
at Object.handleError
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thank you, credit goes to cave.on
My first solution is not so elegant :)
Pirates of the Caribbean
Thanks Johan! I have a lot of things to read about so I'll come back to this as soon as I have time xD
JS
random generator sometimes generates value
0
for discount.PY
missing random tests
Example in description should be removed
There's no test case with more than 1 space (js and py), if there were a lot of regex solutions would be invalidated
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
We had the same thought but yours is much cleaner than mine :P
AAAH I still have a lot to learn
Sorry, forgot.
Maybe it's not an issue but wasn't there a prettier way to fail a test than yelling an error?
Anyway, nice kata.
(JS)
???
Loading more items...