Ad
  • Default User Avatar

    ^didn't knew about that. Thanks man.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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!

  • Custom User Avatar

    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 import factorial it serves AS the function when you run the sample tests, which is why you pass them

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution