Crossfire Server, Trunk
check_alchemy.cpp File Reference
#include <stdlib.h>
#include <check.h>
#include <global.h>
#include <assert.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 79 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 92 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 47 of file check_alchemy.cpp.

References recipe::diff, MAX, MIN, and skill.

Referenced by START_TEST().

Here is the caller graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 38 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 61 of file check_alchemy.cpp.

References recipe::diff, recipe_chance(), and skill.

Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 42 of file check_alchemy.cpp.

Referenced by alchemy_suite().

Here is the caller graph for this function: