Angband
Functions | Variables
dice.c File Reference
#include "unit-test.h"
#include "z-dice.h"

Functions

NOSETUP NOTEARDOWN int test_alloc (void *state)
 
int test_parse_success (void *state)
 
int test_parse_failure (void *state)
 
s32b test_evaluate_base (void)
 
int test_evaluate (void *state)
 

Variables

const char * suite_name = "z-dice/dice"
 
struct test tests []
 

Function Documentation

NOSETUP NOTEARDOWN int test_alloc ( void state)

References dice_free(), dice_new(), NULL, ok, and require.

int test_evaluate ( void state)
s32b test_evaluate_base ( void  )

Referenced by test_evaluate().

int test_parse_failure ( void state)
int test_parse_success ( void state)

Variable Documentation

const char* suite_name = "z-dice/dice"
struct test tests[]
Initial value:
= {
{ "alloc", test_alloc },
{ "parse-success", test_parse_success },
{ "parse-failure", test_parse_failure },
{ "evaluate", test_evaluate },
{ NULL, NULL },
}
int test_parse_success(void *state)
Definition: dice.c:17
int test_parse_failure(void *state)
Definition: dice.c:125
int test_evaluate(void *state)
Definition: dice.c:168
NOSETUP NOTEARDOWN int test_alloc(void *state)
Definition: dice.c:9
NULL
Definition: list-summon-types.h:18