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.
Thanks guys,
I imported the math
factorial
with a different name, so that I could use the default function name in the code solution.All perfect!
Yes, this could be.
However, note that before trying to submit, I modified the "visible" sample tests from the kata, so that "get_factorial" is called instead of the original function name.
These are the results that I get:
· On "Run tests cases", all are successful
· On "Attempt", 1 out of 16 fails. Output message --> Should throw error
Do you still think this is the problem? I will try to get around anyway.
This comment is hidden because it contains spoiler information about the solution
This returns "-0" if you input zero though.
You should check this case also.