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.
^didn't knew about that. Thanks man.
This comment is hidden because it contains spoiler information about the solution
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!
yeah, Chrono79 is totally right. the fixed (and random) tests are never going to call
get_factorial
, so no exception will ever get called. when you importfactorial
it serves AS the function when you run the sample tests, which is why you pass themYes, 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.
It's a problem with your code, the function's name is
factorial
and you're importing one with the same name.get_factorial
is never called and so the exception is never thrown.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution