This week’s topics
Checking a solution with test data
- Normal, boundary and wrong data
- Comparing results with what you expect
What you will be able to do
- 4.2 Verify a solution using test data.
Activity
Test your pseudocode with a table of test data.
Study materials
Further resources
- Introduction to Computer Science, 9.3: Testing · PDF · OpenStax Introduction to Computer Science (2024), 9.3 Testing: choosing test data and comparing results with expectations, pp. 468–472 · for registered students
- Prealgebra 2e, 9.1: Check your answer · PDF · OpenStax Prealgebra 2e (2020), 9.1: the final step of checking a solution makes sense, pp. 651–665 · for registered students
- Software-testing education: a systematic literature mapping · Open-access article · Garousi et al. (2020), Journal of Systems and Software. How testing with normal, boundary and erroneous data is taught. · for registered students
- Transition from passive learner to critical evaluator through peer-testing of programming… · Open-access article · Grov et al. (2017), New Directions in the Teaching of Physical Sciences. Students learn to design test cases by peer-testing programs. · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.