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.
Rejecting because no random tests and top level assertions.
sort() mutates the original array. This can introduce subtle bugs, since callers may not expect the input array to be modified.
approved
rejected, outdated framework and no random tests
outdated framework, no random tests
Rejected:
Using
Test.expectMissing
mocha + chaiDescription language agnosticity
thank you for your suggestion :) (mine looks same as him)
Fixed
itmessageEven out the true & false cases
used chai for assertions
Min and Max just return single values, so you need put them into array.
Yes, but my point was that this isn't best practice.. just clever.
the description says the input will be all positive integers
Good, but if they were to pass negative numbers as an input and it would fail..
outdated and author no longer active
The
itblock of the random tests should beit "Testing #{arr.inspect} and #{fun.toString()}", ->Otherwise, the output looks like this
Done
Loading more items...