Drivers
Drivers
Also known as Test Harnesses

Drivers, also called Test Harnesses, are short programs written and used to test functions or procedures before they are integrated into the main program.

For example:

#include <stdio.h> #include "mathfunc.h" main() { PrintExplanation(); }
... compiling this main with the mathfunc.c file will enable the testing of only the PrintExplanation() function. Using drivers enables you to test functions without disrupting your main program files.


Main Page
Last Modified 3 October 2000