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)
int 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(), ok, and require.

int test_evaluate ( void state)
int 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 },
}