Snoke
Labyrinth_setLabyrinth.h
Go to the documentation of this file.
1 #ifndef LABYRINTH_SETLABYRINTH_H
2 #define LABYRINTH_SETLABYRINTH_H
3 
4 #include "shared.h"
5 #include "Labyrinth/labyrinth.h"
6 
10 TEST(Labyrinth_setLabyrinth, test0){
11  Labyrinth labyrinth;
12  SUCCEED();
13 }
14 
18 TEST(Labyrinth_setLabyrinth, test1) {
19  Labyrinth labyrinth;
20  Point size;
21  size.x = 5;
22  size.y = 5;
23  bool retVal = labyrinth.setLabyrinth(size);
24  if(retVal)
25  {
26  SUCCEED();
27  }
28  else
29  {
30  FAIL();
31  }
32 }
33 
37 TEST(Labyrinth_setLabyrinth, test2) {
38  Labyrinth labyrinth;
39  Point size;
40  size.x = 3;
41  size.y = -2;
42  bool retVal = labyrinth.setLabyrinth(size);
43  if(!retVal)
44  {
45  SUCCEED();
46  }
47  else
48  {
49  FAIL();
50  }
51 }
52 
53 #endif // LABYRINTH_SETLABYRINTH_H
short x
Definition: common.h:55
class for containing and displaying the game field
Definition: labyrinth.h:66
Definitions and prototypes for Labyrinth class.
bool setLabyrinth(Point dimensions)
Sets the default values fro the variables as well as generating the labyritnh array with borders...
Definition: labyrinth.cpp:17
TEST(Labyrinth_setLabyrinth, test0)
Labyrinth class object can be created.
shared functions for testing
short y
Definition: common.h:56
Coordinates and style of the cell in console window.
Definition: common.h:52