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

Functions

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

Variables

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

Function Documentation

◆ base_value_2()

static s32b base_value_2 ( void  )
static

Referenced by test_evaluate().

◆ test_alloc()

NOSETUP NOTEARDOWN int test_alloc ( void state)

◆ test_evaluate()

int test_evaluate ( void state)

◆ test_parse_failure()

int test_parse_failure ( void state)

◆ test_parse_success()

int test_parse_success ( void state)

Variable Documentation

◆ suite_name

const char* suite_name = "z-expression/expression"

◆ tests

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_failure(void *state)
Definition: expression.c:77
int test_evaluate(void *state)
Definition: expression.c:129
NOSETUP NOTEARDOWN int test_alloc(void *state)
Definition: expression.c:9
int test_parse_success(void *state)
Definition: expression.c:24
NULL
Definition: list-summon-types.h:18