todo.t.c

This example demonstrates how to use the todo_start() and todo_end() function to mark a sequence of tests to be done. Observe that the tests are assumed to fail: if any test succeeds, it is considered a "bonus".

00001 
00002 #include <stdlib.h>
00003 #include <tap.h>
00004 
00005 int main()
00006 {
00007   plan(4);
00008   ok(1, NULL);
00009   ok(1, NULL);
00010   /*
00011     Tests in the todo region is expected to fail. If they don't,
00012     something is strange.
00013   */
00014   todo_start("Need to fix these");
00015   ok(0, NULL);
00016   ok(0, NULL);
00017   todo_end();
00018   return exit_status();
00019 }

Generated on Fri Oct 20 21:13:28 2006 by  doxygen 1.4.6