Crossfire Server, Branch 1.12
R12190
|
#include <global.h>
#include <stdlib.h>
#include <check.h>
#include <loader.h>
#include <toolkit_common.h>
#include <sproto.h>
Go to the source code of this file.
Functions | |
END_TEST Suite * | c_object_suite (void) |
static object * | find_best_apply_object_match (object *start, object *pl, const char *params, int aflag) |
int | main (void) |
void | setup (void) |
START_TEST (test_find_best_apply_object_match) | |
END_TEST | START_TEST (test_put_object_in_sack) |
void | teardown (void) |
END_TEST Suite* c_object_suite | ( | void | ) |
Definition at line 174 of file check_c_object.c.
References setup(), and teardown().
Referenced by main().
static object* find_best_apply_object_match | ( | object * | start, |
object * | pl, | ||
const char * | params, | ||
int | aflag | ||
) | [static] |
Definition at line 47 of file check_c_object.c.
References AP_APPLY, AP_UNAPPLY, FLAG_APPLIED, item_matched_string(), and QUERY_FLAG.
Referenced by START_TEST().
int main | ( | void | ) |
Definition at line 188 of file check_c_object.c.
References c_object_suite(), Settings::debug, init(), Settings::logfilename, and settings.
void setup | ( | void | ) |
Definition at line 40 of file check_c_object.c.
START_TEST | ( | test_find_best_apply_object_match | ) |
Definition at line 66 of file check_c_object.c.
References add_string(), CLEAR_FLAG, create_archetype(), find_best_apply_object_match(), FLAG_IDENTIFIED, and insert_ob_in_ob().
END_TEST START_TEST | ( | test_put_object_in_sack | ) |
Definition at line 95 of file check_c_object.c.
References CONTAINER, create_archetype(), FLAG_APPLIED, free_map(), free_object(), get_empty_map(), GET_MAP_OB, insert_ob_in_map_at(), put_object_in_sack(), remove_ob(), SET_FLAG, and test_map.
void teardown | ( | void | ) |
Definition at line 43 of file check_c_object.c.