A detailed discussion of these questions can be found in the "Appendix A" section on page 494.
Write a test harness for the
greatest_common_divisor code example earlier in this
chapter. Make it as exhaustive as you can. How many individual test
cases have you included?
How many of these passed?
How many failed?
Using these tests, identify any faults and repair the code.
How should the testing of a spreadsheet application and an automatic aircraft pilot differ?
Should you test all of the test code that you write?
How does a programmer's testing differ from a QA department member's testing?
Is it necessary to write a test harness for every single function?
Test-driven development encourages you to write tests first, before any code. ...