QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
test-set.c File Reference

Macros

#define num_tests   (sizeof (tests) / sizeof (tests[0]))
 
#define SIZE   (SET_DEFMAP_SIZE * sizeof (set_bits_t) * 8)
 

Typedefs

typedef set_t *(* op_func )(set_t *s1, const set_t *s2)
 
typedef set_t *(* setup_func )(void)
 
typedef int(* test_func )(const set_t *s1, const set_t *s2)
 

Functions

int main (int argc, const char **argv)
 

Variables

struct {
   op_func   op
 
   setup_func   set1
 
   setup_func   set2
 
   const char *   str_expect
 
   test_func   test
 
   int   test_expect
 
tests []
 

Macro Definition Documentation

#define num_tests   (sizeof (tests) / sizeof (tests[0]))
#define SIZE   (SET_DEFMAP_SIZE * sizeof (set_bits_t) * 8)

Typedef Documentation

typedef set_t*(* op_func)(set_t *s1, const set_t *s2)
typedef set_t*(* setup_func)(void)
typedef int(* test_func)(const set_t *s1, const set_t *s2)

Function Documentation

int main ( int  argc,
const char **  argv 
)

Variable Documentation

op_func op
setup_func set1
setup_func set2
const char* str_expect
test_func test
int test_expect
struct { ... } tests[]