Andreas Krennmair:
[apps/madmutt.git] / test / test_muttng.h
1 #ifndef TEST_MUTTNG__H
2
3 #define mu_assert(message, test) do { asserts_run++; if (!(test)) return message; } while (0)
4 #define mu_run_test(test) do { char *message = test(); \
5                                tests_run++; \
6                                if (message) { \
7                                  return message; \
8                                } \
9                              } while (0)
10 extern int tests_run;
11 extern int asserts_run;
12
13 #endif