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