/* A complete test example */ #include # suite The Suite # tcase The Test Case # test the_test int nc; const char msg[] = "\n\n Hello, world!\n"; nc = printf("%s", msg); fail_unless(nc == (sizeof msg - 1) /* for terminating NUL. */ ); # main-pre int declare_me = 0; # test uh_oh fail("Phooey");