CS117 Programming Methodology
How do we know a program works?
Testing input-output behavior
Testing strategies
The importance of testing
Black-box testing
The MPG problem
Testing the MPG program
Test 1: sentinel alone
Test 2: zeros
Test 3: simple numbers
Test 4: expected input
Test 5: change the expected output
Test 6: big numbers within range
Test 7: bigger numbers
Test 8: really big numbers
Email: rth@cs.nmsu.edu
Home Page: http://www.cs.nmsu.edu/~rth