Crossfire Server, Trunk
|
#include <global.h>
#include <stdlib.h>
#include <check.h>
#include <loader.h>
#include <toolkit_common.h>
Go to the source code of this file.
Macros | |
#define | KEY "check_artifact" |
#define | VALUE "all is right!" |
Functions | |
static END_TEST Suite * | artifact_suite (void) |
int | main (void) |
static void | setup (void) |
END_TEST | START_TEST (test_artifact_key_value) |
START_TEST (test_face_for_each_artifact) | |
static void | teardown (void) |
KEY "check_artifact" |
See Key
Referenced by START_TEST().
#define VALUE "all is right!" |
|
static |
Definition at line 73 of file check_artifact.cpp.
References setup(), and teardown().
Referenced by main().
int main | ( | void | ) |
Definition at line 88 of file check_artifact.cpp.
References artifact_suite().
|
static |
Definition at line 33 of file check_artifact.cpp.
References cctk_init_std_archetypes(), cctk_setdatadir(), and cctk_setlog().
Referenced by artifact_suite().
END_TEST START_TEST | ( | test_artifact_key_value | ) |
Ensure key/valuse from artifact definition are correctly copied to the item.
Definition at line 57 of file check_artifact.cpp.
References add_abilities(), FAIL_UNLESS, FREE_OBJ_NO_DESTROY_CALLBACK, KEY, object_free(), object_get_value(), object_new(), object_set_value(), sstring, autojail::value, and VALUE.
START_TEST | ( | test_face_for_each_artifact | ) |
Ensure there is a face available for each artifact
Definition at line 44 of file check_artifact.cpp.
References artifact_get_face(), FAIL_UNLESS, first_artifactlist, artifactlist::items, and artifactlist::next.
|
static |
Definition at line 39 of file check_artifact.cpp.
Referenced by artifact_suite().