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

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.c.

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.c.

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.c.

References recipestruct::diff, obj::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 38 of file check_alchemy.c.

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.c.

References recipestruct::diff, obj::level, and recipe_chance().

+ Here is the call graph for this function:

◆ teardown()

static void teardown ( void  )
static

Definition at line 42 of file check_alchemy.c.

Referenced by alchemy_suite().

+ Here is the caller graph for this function: