2012-06-04 11:35:56 +02:00
|
|
|
#ifndef ERESSEA_TESTS_H
|
|
|
|
#define ERESSEA_TESTS_H
|
2010-08-08 10:06:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2012-06-04 11:35:56 +02:00
|
|
|
#include <CuTest.h>
|
|
|
|
|
2011-03-07 08:02:35 +01:00
|
|
|
void test_cleanup(void);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2011-03-13 02:01:20 +01:00
|
|
|
struct terrain_type * test_create_terrain(const char * name, unsigned int flags);
|
2011-03-07 08:02:35 +01:00
|
|
|
struct race *test_create_race(const char *name);
|
|
|
|
struct region *test_create_region(int x, int y,
|
|
|
|
const struct terrain_type *terrain);
|
|
|
|
struct faction *test_create_faction(const struct race *rc);
|
|
|
|
struct unit *test_create_unit(struct faction *f, struct region *r);
|
|
|
|
void test_create_world(void);
|
2011-03-13 02:01:20 +01:00
|
|
|
struct building * test_create_building(struct region * r, const struct building_type * btype);
|
2012-05-17 09:13:30 +02:00
|
|
|
struct ship * test_create_ship(struct region * r, const struct ship_type * stype);
|
2012-05-20 02:23:57 +02:00
|
|
|
struct item_type * test_create_itemtype(const char ** names);
|
2012-07-02 03:00:31 +02:00
|
|
|
struct ship_type *test_create_shiptype(const char **names);
|
|
|
|
struct building_type *test_create_buildingtype(const char *name);
|
|
|
|
|
2011-03-07 08:02:35 +01:00
|
|
|
int RunAllTests(void);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2012-06-04 11:35:56 +02:00
|
|
|
#endif
|