Lots of rearranging. Source now found in the trunk/src folder.
[asgard.git] / tests / test001.cpp
blobe20a6100db34954b5414b2cd02c58e19b4b5607c
1 #include <iostream>
2 using std::cout;
3 using std::endl;
4 #include "Coordinate.h"
5 #include "CircHardpoint.h"
8 int main()
10 Coordinate x(1,1);
11 Coordinate y(3,4);
12 Coordinate z;
13 Coordinate o;
15 CircHardpoint cp(3,3,3);
17 z = x + y;
19 x += y;
21 if (x == z)
22 cout << "x + y == z" << endl;
24 x -= y;
26 if (x != z)
27 cout << "x + y != z" << endl;
29 if (x + y == y + x)
30 cout << "x + y == y + x" << endl;
32 if (x - x == o)
33 cout << "x - x = (0,0)" << endl;
35 cout << distance(x,y) << endl;
37 if (cp.conflict(y))
38 cout << "cp conflicts with y" << endl;
40 if (cp.conflict(o))
41 cout << "cp conflicts with o" << endl;
43 z = x + 1;
44 z = 1 + x;
45 z = x - 1;
46 z = 1 - x;
47 z = x * 1;
48 z = 1 * x;
49 z = x / 1;
50 z = 1 / x;
52 return 0;