27 lines
559 B
C
27 lines
559 B
C
#include "cutest-1.5/CuTest.h"
|
|
#include <stdio.h>
|
|
|
|
CuSuite *SpawnGetSuite();
|
|
CuSuite *PowerupGetSuite();
|
|
CuSuite *CombatGetSuite();
|
|
|
|
int RunAllTests(void) {
|
|
CuString *output = CuStringNew();
|
|
CuSuite *suite = CuSuiteNew();
|
|
|
|
CuSuiteAddSuite(suite, SpawnGetSuite());
|
|
CuSuiteAddSuite(suite, PowerupGetSuite());
|
|
CuSuiteAddSuite(suite, CombatGetSuite());
|
|
|
|
CuSuiteRun(suite);
|
|
CuSuiteSummary(suite, output);
|
|
CuSuiteDetails(suite, output);
|
|
printf("%s\n", output->buffer);
|
|
|
|
return suite->failCount > 0;
|
|
}
|
|
|
|
int main(void) {
|
|
return RunAllTests();
|
|
}
|