Crossfire Server, Trunk
|
Go to the source code of this file.
Functions | |
static END_TEST bool | check_treasure_arch (object *op, const char **first, const char **last) |
static END_TEST void | check_treasure_inv (object *op, const char **items) |
static END_TEST object * | do_artifact (const char *name) |
static END_TEST void | do_magic (int difficulty, uint8_t value, int8_t adjustment) |
int | main (void) |
static void | setup (void) |
START_TEST (test_add_treasure_in_list) | |
END_TEST | START_TEST (test_artifact_invalid) |
END_TEST | START_TEST (test_artifact_not_existing) |
START_TEST (test_artifact_valid) | |
END_TEST | START_TEST (test_create_treasure_all) |
START_TEST (test_create_treasure_one) | |
END_TEST | START_TEST (test_magic_adjustment) |
START_TEST (test_magic_limit) | |
START_TEST (test_magic_set) | |
END_TEST | START_TEST (test_treasure_remove_item) |
static void | teardown (void) |
static END_TEST Suite * | treasure_suite (void) |
Variables | |
const char * | allTraps [] |
const char * | empty [] = {NULL} |
|
static |
Definition at line 143 of file check_treasure.cpp.
References FAIL_UNLESS, commongive::inv, and give::op.
Referenced by do_magic(), and START_TEST().
|
static |
Definition at line 90 of file check_treasure.cpp.
References FAIL_UNLESS, commongive::inv, and give::op.
Referenced by START_TEST().
|
static |
Definition at line 250 of file check_treasure.cpp.
References add_string(), create_archetype(), create_treasure(), FAIL_UNLESS, treasurelist::items, give::name, Floor::t, treasurelist::total_chance, and try_find_archetype().
Referenced by START_TEST().
|
static |
Definition at line 209 of file check_treasure.cpp.
References add_string(), allTraps, cf_srandom(), check_treasure_arch(), create_archetype(), create_treasure(), FAIL_UNLESS, find_treasurelist(), GT_INVISIBLE, object::inv, treasurelist::items, guildoracle::list, Floor::t, treasurelist::total_chance, and autojail::value.
Referenced by START_TEST().
int main | ( | void | ) |
Definition at line 308 of file check_treasure.cpp.
References treasure_suite().
|
static |
Definition at line 38 of file check_treasure.cpp.
References cctk_init_std_archetypes(), cctk_setdatadir(), and cctk_setlog().
Referenced by treasure_suite().
START_TEST | ( | test_add_treasure_in_list | ) |
Definition at line 48 of file check_treasure.cpp.
References FAIL_UNLESS, guildoracle::list, treasure::next, and treasure_insert().
END_TEST START_TEST | ( | test_artifact_invalid | ) |
Definition at line 274 of file check_treasure.cpp.
References do_artifact(), FAIL_UNLESS, and object::inv.
END_TEST START_TEST | ( | test_artifact_not_existing | ) |
Definition at line 280 of file check_treasure.cpp.
References do_artifact(), FAIL_UNLESS, and object::inv.
START_TEST | ( | test_artifact_valid | ) |
Definition at line 266 of file check_treasure.cpp.
References add_string(), object::artifact, do_artifact(), FAIL_UNLESS, object::inv, and sstring.
END_TEST START_TEST | ( | test_create_treasure_all | ) |
Definition at line 122 of file check_treasure.cpp.
References cf_srandom(), check_treasure_inv(), create_archetype(), create_treasure(), empty, FAIL_UNLESS, find_treasurelist(), and guildoracle::list.
START_TEST | ( | test_create_treasure_one | ) |
Definition at line 109 of file check_treasure.cpp.
References cf_srandom(), check_treasure_inv(), create_archetype(), create_treasure(), empty, FAIL_UNLESS, find_treasurelist(), and guildoracle::list.
END_TEST START_TEST | ( | test_magic_adjustment | ) |
Definition at line 245 of file check_treasure.cpp.
References do_magic().
START_TEST | ( | test_magic_limit | ) |
Definition at line 184 of file check_treasure.cpp.
References allTraps, object::arch, cf_srandom(), check_treasure_arch(), create_archetype(), create_treasure(), FAIL_UNLESS, find_treasurelist(), GT_INVISIBLE, object::inv, guildoracle::list, and archetype::name.
START_TEST | ( | test_magic_set | ) |
Definition at line 240 of file check_treasure.cpp.
References do_magic().
END_TEST START_TEST | ( | test_treasure_remove_item | ) |
Definition at line 72 of file check_treasure.cpp.
References FAIL_UNLESS, guildoracle::list, treasure::next, treasure_insert(), and treasure_remove_item().
|
static |
Definition at line 44 of file check_treasure.cpp.
Referenced by treasure_suite().
|
static |
Definition at line 286 of file check_treasure.cpp.
References setup(), and teardown().
Referenced by main().
const char* allTraps[] |
Definition at line 156 of file check_treasure.cpp.
Referenced by do_magic(), and START_TEST().
const char* empty[] = {NULL} |
Definition at line 107 of file check_treasure.cpp.
Referenced by cfapi_object_say(), log_python_error(), nssv_DISABLE_MSVC_WARNINGS(), START_TEST(), and inja::Renderer::visit().