In This Chapter
• Exploring unit testing
• Creating and running logic tests
• Creating and running application tests
• Understanding assertions
All your development so far on the passer-rating projects has left out one essential consideration—one that you might have worried about at the end of the last chapter:
How do you know it works?
Yes, you know generally what to expect, and you’ve used the Xcode debugger to verify that what the application does makes sense, but you don’t have the time, and most people don’t have the discipline, to monitor for every possible error. Ideally, for every change to your application, you’d verify that everything still worked. With a prompt warning, you could isolate the problem to the ...