Retired

Comic Book Hero - The Flash - Saving Lives (retired)

Description
Loading description...
Algorithms
Fundamentals
View
AllIssues2QuestionsSuggestions1Show Resolved
  • Please sign in or sign up to leave a comment.
  • mauro-1 Avatar

    Random tests almost always expect False.

    A function that simply returns False will pass after few tries.

  • mauro-1 Avatar

    Sample test is wrong and confusing.

    • function result is not tested
    • test.expect(True) does not make sense (always pass)
    • a call that should return False followed by expect(true) is very confusing
  • m1n0 Avatar

    Nice kata, but please fix the exmaple test case as pointed out by @SteffenVogel_79. Also, it would be beneficial for users to show the tests input values instead of having to print them out for debugging.

    Additionally please follow python coding standards and change the function name to saving_Lives

  • user5036852 Avatar

    Nice idea for a kata.

    Some hints: The example-tests do not make any sense. Test.except(true) is always succeeded.... Test.except(false) will always fail. You should test some edge cases. For that it is important, that you allow also == for the time!