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

Functions

NOSETUP NOTEARDOWN int test_string_make (void *state)
 
int test_string_make_null (void *state)
 
int test_string_free_null (void *state)
 
int test_string_append (void *state)
 
int test_string_append_null0 (void *state)
 
int test_string_append_null1 (void *state)
 
int test_string_append_null2 (void *state)
 

Variables

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

Function Documentation

int test_string_append ( void state)
int test_string_append_null0 ( void state)
int test_string_append_null1 ( void state)
int test_string_append_null2 ( void state)

References NULL, ok, require, and string_append().

int test_string_free_null ( void state)

References NULL, ok, and string_free().

NOSETUP NOTEARDOWN int test_string_make ( void state)

References ok, require, s1, string_free(), and string_make().

int test_string_make_null ( void state)

References NULL, ok, require, s1, and string_make().

Variable Documentation

const char* suite_name = "z-virt/string"

Referenced by main().

struct test tests[]
Initial value:
= {
{ "make", test_string_make },
{ "make-null", test_string_make_null },
{ "free-null", test_string_free_null },
{ "append", test_string_append },
{ "append-null0", test_string_append_null0 },
{ "append-null1", test_string_append_null1 },
{ "append-null2", test_string_append_null2 },
{ NULL, NULL }
}
int test_string_append(void *state)
Definition: string.c:28
int test_string_append_null2(void *state)
Definition: string.c:56
int test_string_make_null(void *state)
Definition: string.c:17
int test_string_append_null1(void *state)
Definition: string.c:47
NOSETUP NOTEARDOWN int test_string_make(void *state)
Definition: string.c:9
int test_string_append_null0(void *state)
Definition: string.c:39
int test_string_free_null(void *state)
Definition: string.c:23
NULL
Definition: list-summon-types.h:18

Referenced by main().