server/src/summary.test.c
Enno Rehling 69c4595282 Build in Visual Studio 2019
simplify test_create_faction
rewrite lots of tests
2020-12-06 15:47:47 +01:00

31 lines
654 B
C

#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();
test_create_faction();
sum = make_summary();
report_summary(sum, true);
CuAssertIntEquals(tc, 0, remove("parteien.full"));
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;
}