Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Still no random tests (many fixed tests != random tests)
assert.strictEqual
should be usedThe "random tests" only generate a string format of
\d\d\d-\d\d\d\d
Description should be language-agnostic (no mention of function name)
Example tests should be stated clearer by using code blocks
duplicate and more
The log message is kinda misleading.
From that message, people would thought the input is an array (e.g.
array.push([86,51,67])
). But in reality, it can also mean separate arguments (e.g.array.push(86,51,67)
.I'd suggest changing the brackets to parentheses or none at all.
Also, you might want to remind people in the description that the function should accept multiple arguments.
This comment is hidden because it contains spoiler information about the solution
If
this.length
does not exist, it will be created with an initial value of0
. This does not seem to be tested. (Will have to.call
or.apply
to use athis
that isn't anArray
. But.push
can work on otherObject
s.)CoffeeScript translation Kumited! Please Accept :D