in 362 B

12345678910111213141516171819202122
  1. /* A complete test example */
  2. #include <stdio.h>
  3. # suite The Suite
  4. # tcase The Test Case
  5. # test the_test
  6. int nc;
  7. const char msg[] = "\n\n Hello, world!\n";
  8. nc = printf("%s", msg);
  9. fail_unless(nc == (sizeof msg
  10. - 1) /* for terminating NUL. */
  11. );
  12. #main-pre
  13. int fooyah;
  14. #main-post
  15. return nf;