5 questions to test your understanding
A function `is_palindrome(s)` is tested with `assert is_palindrome('racecar') == True` and `assert is_palindrome('hello') == False`. Both tests pass. Which statement is most accurate?
A developer is told 'comprehensive testing slows down development.' Which response best reflects the insight from this topic?
If most tests in a test suite pass, the program is correct.
Writing tests before writing the implementation (test-driven development) can improve code quality because knowing you need to test a function encourages you to design it with cleaner inputs and outputs.
Why should test cases include edge cases and error cases in addition to normal cases, and where are bugs most commonly found?