Andreas Krennmair:
[apps/madmutt.git] / test / test_muttng.c
1 /* based on MinUnit */
2 #include <stdio.h>
3 #include "test_muttng.h"
4
5 int tests_run = 0;
6
7 static char * test_case(void) {
8   mu_assert("NULL != 0",NULL == 0);
9   return 0;
10 }
11
12 static char * all_tests(void) {
13   mu_run_test(test_case);
14   return 0;
15 }
16
17 int main(int argc, char **argv) {
18   char *result = all_tests();
19   if (result != 0) {
20     printf("ERROR: %s\n", result);
21   } else {
22     printf("ALL TESTS PASSED\n");
23   }
24   printf("Tests run: %d\n", tests_run);
25   return result != 0;
26 }