Chapter 8: Testing and Debugging

Chapter Goals

Unit Tests

Unit Tests (sqrtest1.cpp)


Unit Tests (sqrtest2.cpp)


Unit Tests (sqrtest3.cpp)


Selecting Test Cases


Test Case Evaluations

Test Case Evaluations (sqrtest4.cpp)

Test Case Evaluations (sqrtest5.cpp)


Assertions (reminder)


Program Traces

Program Traces (Problems with Trace Messages)


The Debugger