previous | start | next

## Unit Tests

- In a unit test, a function or procedure is compiled outside the program in which it will be used, together with a test harness that feeds arguments to it.
- Once you have confidence that the function is working correctly, you can plug it into your program.
- Test data can be entered manually (see `sqrtest1.cpp`), in a loop (see `sqrtest2.cpp`), or using random number generation (see `sqrtest3.cpp`).

previous | start | next