-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame_test.h
40 lines (33 loc) · 1.16 KB
/
game_test.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @file game_test.h
* @author Taraxtix (taraxtix.github.io)
* @brief All Test Functions.
* @copyright Copyright (c) 2022
**/
#ifndef __GAME_TEST_H__
#define __GAME_TEST_H__
#include "game.h"
/* ************************************************************************** */
/* CHECK ROUTINES */
/* ************************************************************************** */
bool check_game(c_game g, uint nb_rows, uint nb_cols, square *squares);
/* ************************************************************************** */
/* BASIC TESTS (V1) */
/* ************************************************************************** */
int test_new(void);
int test_new_empty(void);
int test_copy(void);
int test_equal(void);
int test_delete(void);
int test_set_square(void);
int test_get_size(void);
int test_get_square(void);
int test_get_state(void);
int test_get_flags(void);
int test_is_state(void);
int test_is_flag(void);
int test_play_move(void);
int test_check_move(void);
int test_is_over(void);
int test_restart(void);
#endif // __GAME_TEST_H__