Angband
Functions | Variables
basic.c File Reference
#include "unit-test.h"
#include "unit-test-data.h"
#include "test-utils.h"
#include <stdio.h>
#include "cave.h"
#include "cmd-core.h"
#include "game-event.h"
#include "game-world.h"
#include "init.h"
#include "savefile.h"
#include "player.h"
#include "player-timed.h"
#include "z-util.h"

Functions

static void event_message (game_event_type type, game_event_data *data, void *user)
static void println (const char *str)
int setup_tests (void **state)
int teardown_tests (void **state)
int test_newgame (void *state)
int test_loadgame (void *state)
int test_stairs1 (void *state)
int test_stairs2 (void *state)
int test_drop_pickup (void *state)
int test_drop_eat (void *state)

Variables

const char * suite_name = "game/basic"
struct test tests []

Function Documentation

static void event_message ( game_event_type  type,
game_event_data data,
void user 
)
static
static void println ( const char *  str)
static

Referenced by setup_tests().

int setup_tests ( void **  state)
int teardown_tests ( void **  state)

References cleanup_angband(), and file_delete().

int test_drop_eat ( void state)
int test_drop_pickup ( void state)
int test_loadgame ( void state)
int test_newgame ( void state)
int test_stairs1 ( void state)
int test_stairs2 ( void state)

Variable Documentation

const char* suite_name = "game/basic"
struct test tests[]
Initial value:
{
{ "newgame", test_newgame },
{ "loadgame", test_loadgame },
{ "stairs1", test_stairs1 },
{ "stairs2", test_stairs2 },
{ "droppickup", test_drop_pickup },
{ "dropeat", test_drop_eat },
{ NULL, NULL }
}