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.
This comment is hidden because it contains spoiler information about the solution
There are tests with zeros.
Tests could just use assert.fail.
Now wondering how to do
[1..5]
( which is almost(1)[5]
, but you can't have aNumber
there ). Also wondering what people don't like. They're voting, but they're not telling you what or how to improve.I don't think you can nest
it
blocks, the sample tests throw an error because you're not closing the blocks the right way, I suggest you replace the nested it blocks like this:Also, be consistent about what you use for the tests.
You really need to specify
isInteger
is disabled, and that onlyNumber
s will be tested.All current solutions bug out on
f(false)
, which is a valid input according to the description.