server/src/summary.test.c

32 lines
662 B
C
Raw Normal View History

#include <platform.h>
#include "summary.h"
#include "kernel/calendar.h"
#include <CuTest.h>
#include "tests.h"
#include <stdio.h>
static void test_summary(CuTest * tc)
{
struct summary *sum;
test_setup();
test_create_faction(NULL);
test_create_faction(NULL);
sum = make_summary();
2018-01-27 21:44:36 +01:00
report_summary(sum, true);
CuAssertIntEquals(tc, 0, remove("parteien.full"));
2016-09-15 21:16:37 +02:00
CuAssertIntEquals(tc, 0, remove("datum"));
CuAssertIntEquals(tc, 0, remove("turn"));
free_summary(sum);
test_teardown();
}
CuSuite *get_summary_suite(void)
{
CuSuite *suite = CuSuiteNew();
SUITE_ADD_TEST(suite, test_summary);
return suite;
}