Main Project: Delivery Route

9. Test Your Code

Coverage testing

Does your code work for all three colors? Repeat the read, deliver & return routine three times, once for each color marked card, so that you’ve delivered a card to every house.

Test for failure cases

It is important to think about ways in which your program can fail and code up sensible responses for those situations. Consider what you would like to happen if you press the Deliver Letter button before you’ve read the address. Code up and test for that behavior.