Crossfire Server, Trunk
|
#include <global.h>
#include <stdlib.h>
#include <check.h>
#include <loader.h>
#include <toolkit_common.h>
#include <object.h>
#include <stringbuffer.h>
Go to the source code of this file.
Functions | |
static END_TEST Suite * | loader_suite (void) |
int | main (void) |
static void | setup (void) |
START_TEST (test_get_ob_diff) | |
END_TEST | START_TEST (test_object_dump) |
static void | teardown (void) |
|
static |
Definition at line 128 of file check_loader.cpp.
References setup(), and teardown().
Referenced by main().
int main | ( | void | ) |
Definition at line 143 of file check_loader.cpp.
References loader_suite().
|
static |
Definition at line 41 of file check_loader.cpp.
References cctk_init_std_archetypes(), cctk_setdatadir(), and cctk_setlog().
Referenced by loader_suite().
START_TEST | ( | test_get_ob_diff | ) |
Definition at line 51 of file check_loader.cpp.
References archininventory::arch, arch_to_object(), buf, living::dam, object::expmul, FAIL_UNLESS, find_archetype(), FREE_AND_COPY, get_ob_diff(), living::hp, object::name, rotate-tower::result, object::speed, object::speed_left, object::stats, stringbuffer_finish(), stringbuffer_new(), and living::Wis.
END_TEST START_TEST | ( | test_object_dump | ) |
we only test specific things like env/more/head/..., the rest is in test_get_ob_diff().
Definition at line 91 of file check_loader.cpp.
References arch_to_object(), buf, empty, empty_archetype, FAIL_UNLESS, object_dump(), rotate-tower::result, stringbuffer_finish(), and stringbuffer_new().
|
static |
Definition at line 47 of file check_loader.cpp.
Referenced by loader_suite().