forked from github/server
26 lines
484 B
C
26 lines
484 B
C
|
#include <platform.h>
|
||
|
|
||
|
#include "summary.h"
|
||
|
#include "calendar.h"
|
||
|
|
||
|
#include <CuTest.h>
|
||
|
#include "tests.h"
|
||
|
|
||
|
static void test_summary(CuTest * tc)
|
||
|
{
|
||
|
struct summary *sum;
|
||
|
test_setup();
|
||
|
sum = make_summary();
|
||
|
report_summary(sum, sum, true);
|
||
|
CuAssertIntEquals(tc, 0, remove("parteien.full"));
|
||
|
free_summary(sum);
|
||
|
test_cleanup();
|
||
|
}
|
||
|
|
||
|
CuSuite *get_summary_suite(void)
|
||
|
{
|
||
|
CuSuite *suite = CuSuiteNew();
|
||
|
SUITE_ADD_TEST(suite, test_summary);
|
||
|
return suite;
|
||
|
}
|