Testing is an important part of programming. Here's a famous example of a program that wasn't properly tested: <https://www.bbc.co.uk/news/newsbeat-55364935>
Programs are tested using three types of test data:
* normal (typical)
* erroneous (wrong)
* boundary (extreme)
If the allowed range is 1 to 10, then boundary data is 0, 1, 10, 11, ie either side of the allowed boundary.
Here are some examples of test data for our adventure game
# Normal
* take spade
* use spade
# Erroneous
* take sdfsdf
* pick up the spoon
* spade use
# Boundary
Boundary data is usually found when the answer is a number. You might not have any for your program
# User Walk Through
It's good practice to write a set of test data that walks the user through your system from beginning to end.
# Exercise
1. Write a set of test data for your adventure game.
2. Get another user to walk through your game using your test data
3. What errors did you find?