First page Back Continue Last page Overview Graphics
A recipe for coding(cont)
After you compile with no errors YOU ARE NOT DONE.
You should stress test your code
- test for different values as input
- try also wrong values to see how your program behaves
- test for the different execution flows
- provide test cases that exercise control flow constructs with ALL their branching.
- make sure that all the test cases provide the “correct” results.
- correct results = same output as the one described by your customer (homework, design, text description)
- if a test case fails
- detect, fix and run again
Notes: