Crossfire Server, Trunk
check_alchemy.cpp File Reference
#include <stdlib.h>
#include <check.h>
#include <global.h>
#include <assert.h>
#include "toolkit_common.h"
+ Include dependency graph for check_alchemy.cpp:

Go to the source code of this file.

Functions

static END_TEST Suite * alchemy_suite (void)
 
int main (void)
 
static float recipe_chance (const recipe *rp, const object *skill)
 
static void setup (void)
 
 START_TEST (test_recipe_chance)
 
static void teardown (void)
 

Function Documentation

◆ alchemy_suite()

static END_TEST Suite* alchemy_suite ( void  )
static

Definition at line 80 of file check_alchemy.cpp.

References setup(), and teardown().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 93 of file check_alchemy.cpp.

References alchemy_suite().

+ Here is the call graph for this function:

◆ recipe_chance()

static float recipe_chance ( const recipe rp,
const object skill 
)
static

Definition at line 48 of file check_alchemy.cpp.

References recipe::diff, object::level, MAX, and MIN.

Referenced by START_TEST().

+ Here is the caller graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 39 of file check_alchemy.cpp.

Referenced by alchemy_suite().

+ Here is the caller graph for this function:

◆ START_TEST()

START_TEST ( test_recipe_chance  )

Definition at line 62 of file check_alchemy.cpp.

References recipe::diff, FAIL_UNLESS, object::level, and recipe_chance().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 43 of file check_alchemy.cpp.

Referenced by alchemy_suite().

+ Here is the caller graph for this function: