forked from ivogeorg/ucd-csci2312-pa4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GamingTests.h
67 lines (40 loc) · 1.76 KB
/
GamingTests.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
// Created by Ivo Georgiev on 11/22/15.
//
#ifndef PA5GAME_GAMINGTESTS_H
#define PA5GAME_GAMINGTESTS_H
#include "ErrorContext.h"
using namespace Testing;
// - - - - - - - - - Tests: class Piece - - - - - - - - - -
// Smoketest: constructor, copy constructor, destructor, resources
void test_piece_smoketest(ErrorContext &ec);
// Piece id-s, names, and printing
void test_piece_print(ErrorContext &ec, unsigned int numRuns);
// Piece aging and viability
void test_piece_aging(ErrorContext &ec, unsigned int numRuns);
// Piece energy/capacity
void test_piece_energy(ErrorContext &ec, unsigned int numRuns);
// Taking turns
void test_piece_turntaking(ErrorContext &ec, unsigned int numRuns);
// Piece interaction operator*
void test_piece_interaction(ErrorContext &ec, unsigned int numRuns);
// - - - - - - - - - Tests: struct Surroundings - - - - - - - - - -
// Surroundings (vector of enums of type PieceType)
void test_surroundings_smoketest(ErrorContext &ec);
// - - - - - - - - - Tests: enum ActionType - - - - - - - - - -
// Action smoke test
void test_action_smoketest(ErrorContext &ec);
// - - - - - - - - - Tests: class Game - - - - - - - - - -
// Smoketest: constructor, copy constructor, destructor, number of pieces
void test_game_smoketest(ErrorContext &ec);
// Population of the game grid
void test_game_populate(ErrorContext &ec, unsigned int numRuns);
// Getting a Piece by position
void test_game_getpiece(ErrorContext &ec, unsigned int numRuns);
// Printing of a game
void test_game_print(ErrorContext &ec, unsigned int numRuns);
// Randomization of motion
void test_game_randomization(ErrorContext &ec, unsigned int numRuns);
// Playing and termination of a game
void test_game_play(ErrorContext &ec, unsigned int numRuns);
#endif //PA5GAME_GAMINGTESTS_H