2 /* see factorial_test.c for more complete examples, this file is mostly to show
3 * how to have multiple test suites, test suite initialization and
4 * termination, and a test suite that succeed. */
7 #include <stdlib.h> /* malloc(), free() */
10 #include "../py/mutest.h"
12 #include "../mutest.h"
15 /* unused, just for ilustrate the test suite initialization/termination */
19 global = (char*) malloc(1024);
21 return 0; /* initialization OK */
25 mu_check(sum(4, 5) == 9);
26 mu_check(sum(-4, -5) == -9);
27 mu_check(sum(0, 0) == 0);
28 mu_check(sum(1, -1) == 0);