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.
Looks like there's a bad spec, according to the examples you provided. Spec provides ultimately 4 arguments, but the function
add
being passed in only handles 3. My implementation takes those arguments without a problem and passes them all toadd
, but the expected result is 10 when it should be 6 - again, according to the examples.This comment is hidden because it contains spoiler information about the solution
I think the Ruby random test cases are broken. Some of the tests that start with 'F' are not expecting leading zeros, which I think it should have.
Needs test cases before submit!
Ruby random tests are definitely wrong. They're looking for the difference without spoonerizing the numbers first.
This doesn't test for that scenario, so I didn't write that, but you're right.
Random test case provided 0 as a parameter in my first submission, which, of course, is not a positive number as expected per the instructions. Might want to fix that.