Retired
Comic Book Hero - The Flash - Saving Lives (retired)
32Climacus
Loading description...
Algorithms
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Random tests almost always expect
False
.A function that simply returns
False
will pass after few tries.Sample test is wrong and confusing.
test.expect(True)
does not make sense (always pass)False
followed byexpect(true)
is very confusingNice 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
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!