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 "lucky.h" main() { PrintGreeting(); }
... compiling this main with the lucky.c file will enable the testing of only the PrintGreeting() function. Using drivers enables you to test functions without disrupting your main program files.


Main Page