What do we do when we have to unit test our C programs? (You want the computer to read the output!)
Write code by hand
if (fun(input) != expected_value) fprintf (stderr, "Test case 43.1 failed!");
Write an interactive tester (
Write a generalized testing framework. (Using Macros?)
Find an existing testing framework. Just because there's no standard, it doesn't mean there isn't one.
Tradition in C: Use