Snoke
Ball_init.h
Go to the documentation of this file.
1 #ifndef BALL_INIT_H
2 #define BALL_INIT_H
3 
4 #include "shared.h"
5 #include "Ball/ball.h"
6 
10 TEST(Ball_init, test0){
11  Ball ball;
12  SUCCEED();
13 }
14 
18 TEST(Ball_init, test1) {
19  Ball ball;
20  Point dim;
21  dim.x = 20;
22  dim.y = 10;
23  bool retVal = ball.init(dim);
24  if(retVal)
25  {
26  SUCCEED();
27  }
28  else
29  {
30  FAIL();
31  }
32 }
33 
37 TEST(Ball_init, test2) {
38  Ball ball;
39  Point dim;
40  dim.x = 2;
41  dim.y = 10;
42  bool retVal = ball.init(dim);
43  if(!retVal)
44  {
45  SUCCEED();
46  }
47  else
48  {
49  FAIL();
50  }
51 }
52 
53 #endif // BALL_INIT_H
short x
Definition: common.h:55
Describes the Ball entity of the game.
Definition: ball.h:33
definitions and prototypes for Ball class
bool init(Point dim)
Initialization.
Definition: ball.cpp:18
shared functions for testing
short y
Definition: common.h:56
TEST(Ball_init, test0)
Ball class object can be created.
Definition: Ball_init.h:10
Coordinates and style of the cell in console window.
Definition: common.h:52