8 #ifndef POINT_TEST_UNIT_TESTS_HPP_
9 #define POINT_TEST_UNIT_TESTS_HPP_
11 #include "Point_test.hpp"
13 BOOST_AUTO_TEST_SUITE( Point_test_unit_tests )
15 BOOST_AUTO_TEST_CASE( Point_test_unit_tests )
28 p.template get<P::v>()[0] = 5.0;
29 p.template get<P::v>()[1] = 6.0;
30 p.template get<P::v>()[2] = 7.0;
32 p.template get<P::t>()[0][0] = 8.0;
33 p.template get<P::t>()[0][1] = 9.0;
34 p.template get<P::t>()[0][2] = 10.0;
35 p.template get<P::t>()[1][0] = 11.0;
36 p.template get<P::t>()[1][1] = 12.0;
37 p.template get<P::t>()[1][2] = 13.0;
38 p.template get<P::t>()[2][0] = 14.0;
39 p.template get<P::t>()[2][1] = 15.0;
40 p.template get<P::t>()[2][2] = 16.0;
42 BOOST_REQUIRE_EQUAL(p.template get<P::x>(),1.0);
43 BOOST_REQUIRE_EQUAL(p.template get<P::y>(),2.0);
44 BOOST_REQUIRE_EQUAL(p.template get<P::z>(),3.0);
45 BOOST_REQUIRE_EQUAL(p.template get<P::s>(),4.0);
47 BOOST_REQUIRE_EQUAL(p.template get<P::v>()[0],5.0);
48 BOOST_REQUIRE_EQUAL(p.template get<P::v>()[1],6.0);
49 BOOST_REQUIRE_EQUAL(p.template get<P::v>()[2],7.0);
51 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[0][0],8.0);
52 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[0][1],9.0);
53 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[0][2],10.0);
54 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[1][0],11.0);
55 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[1][1],12.0);
56 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[1][2],13.0);
57 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[2][0],14.0);
58 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[2][1],15.0);
59 BOOST_REQUIRE_EQUAL(p.template get<P::t>()[2][2],16.0);
64 BOOST_REQUIRE_EQUAL(p2.template get<P::x>(),1.0);
65 BOOST_REQUIRE_EQUAL(p2.template get<P::y>(),2.0);
66 BOOST_REQUIRE_EQUAL(p2.template get<P::z>(),3.0);
67 BOOST_REQUIRE_EQUAL(p2.template get<P::s>(),4.0);
69 BOOST_REQUIRE_EQUAL(p2.template get<P::v>()[0],5.0);
70 BOOST_REQUIRE_EQUAL(p2.template get<P::v>()[1],6.0);
71 BOOST_REQUIRE_EQUAL(p2.template get<P::v>()[2],7.0);
73 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[0][0],8.0);
74 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[0][1],9.0);
75 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[0][2],10.0);
76 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[1][0],11.0);
77 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[1][1],12.0);
78 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[1][2],13.0);
79 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[2][0],14.0);
80 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[2][1],15.0);
81 BOOST_REQUIRE_EQUAL(p2.template get<P::t>()[2][2],16.0);
113 BOOST_AUTO_TEST_SUITE_END()
Test structure used for several test.