CSC151 2007S, Class 18: Unit Testing Admin: * Are there questions on Exam 1? * Start soon! * Don't forget this week's Disability Week activities. * Yes, you get extra credit for attempting to give blood. * If you wanted to do it but are ineligible because, well, we don't trust people who regularly give blood or who are not Born in the USA (a registered trademark of Bruce Springsteen), you may also receive extra credit. Overview: * An Overview of Testing. * Using Our Test Environment. * Lab. /You need to make sure your code works!/ * Strategy one: Proof * Painful * Complex * Would suggest that CSC151 needs 300-level math as prereq * Strategy two: Test * Past: Try some examples, look at the results * Revised strategy two: Test, and have the computer check the test results * When strategy two is applied to small "units" of program, it's called "unit testing" * Our alums tell us to teach it more