dos-vga-arena-shooter-game/test.c

27 lines
559 B
C
Raw Normal View History

2024-02-28 17:50:57 +00:00
#include "cutest-1.5/CuTest.h"
#include <stdio.h>
CuSuite *SpawnGetSuite();
CuSuite *PowerupGetSuite();
CuSuite *CombatGetSuite();
2024-02-28 17:50:57 +00:00
int RunAllTests(void) {
2024-02-28 17:50:57 +00:00
CuString *output = CuStringNew();
CuSuite *suite = CuSuiteNew();
CuSuiteAddSuite(suite, SpawnGetSuite());
CuSuiteAddSuite(suite, PowerupGetSuite());
CuSuiteAddSuite(suite, CombatGetSuite());
2024-02-28 17:50:57 +00:00
CuSuiteRun(suite);
CuSuiteSummary(suite, output);
CuSuiteDetails(suite, output);
printf("%s\n", output->buffer);
return suite->failCount > 0;
2024-02-28 17:50:57 +00:00
}
int main(void) {
return RunAllTests();
2024-02-28 17:50:57 +00:00
}