#include #include "summary.h" #include "calendar.h" #include #include "tests.h" #include static void test_summary(CuTest * tc) { struct summary *sum; test_setup(); test_create_faction(0); test_create_faction(0); sum = make_summary(); report_summary(sum, sum, true); CuAssertIntEquals(tc, 0, remove("parteien.full")); CuAssertIntEquals(tc, 0, remove("datum")); CuAssertIntEquals(tc, 0, remove("turn")); free_summary(sum); test_cleanup(); } CuSuite *get_summary_suite(void) { CuSuite *suite = CuSuiteNew(); SUITE_ADD_TEST(suite, test_summary); return suite; }