Snoke
Common_misc.h
Go to the documentation of this file.
1 #ifndef COMMON_MISC_H
2 #define COMMON_MISC_H
3 
4 #include "shared.h"
5 
6 TEST(Common_misc, PointEqual)
7 {
8  Point p;
9  Point q;
10  p.x = 1;
11  p.y = 10;
12  q.x = 1;
13  q.y = 10;
14  if(p==q)
15  {
16  SUCCEED();
17  }
18  else
19  {
20  FAIL();
21  }
22 }
23 
24 TEST(Common_misc, PointNotEqual)
25 {
26  Point p;
27  Point q;
28  p.x = 1;
29  p.y = 10;
30  q.x = 2;
31  q.y = 50;
32  if(!(p==q))
33  {
34  SUCCEED();
35  }
36  else
37  {
38  FAIL();
39  }
40 }
41 
42 TEST(Common_misc, PointOstream)
43 {
44  Point p;
45  p.x = 10;
46  p.y = 150;
47  std::cout << p << std::endl;
48  SUCCEED();
49 }
50 
51 #endif // COMMON_MISC_H
short x
Definition: common.h:55
TEST(Common_misc, PointEqual)
Definition: Common_misc.h:6
shared functions for testing
short y
Definition: common.h:56
Coordinates and style of the cell in console window.
Definition: common.h:52