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