9 #include <boost/test/unit_test.hpp>
18 BOOST_AUTO_TEST_SUITE(DefinitionsDirection)
34 BOOST_CHECK(bwd.index() == 0
u);
35 BOOST_CHECK(fwd.index() == 1
u);
37 BOOST_CHECK(bwd.sign() == -1);
38 BOOST_CHECK(fwd.sign() == +1);
40 BOOST_CHECK(bwd.invert() == fwd);
41 BOOST_CHECK(fwd.invert() == bwd);
43 BOOST_CHECK(bwd.toString() ==
"backward");
44 BOOST_CHECK(fwd.toString() ==
"forward");
46 BOOST_CHECK(2. * fwd == 2.);
47 BOOST_CHECK(7 * fwd == 7);
50 BOOST_CHECK(2. * bwd == -2.);
51 BOOST_CHECK(7 * bwd == -7);
58 BOOST_CHECK(a == -7.);
64 BOOST_CHECK(b == -8.);
68 BOOST_CHECK(c ==
Vector3(9., 9., 9.));
70 BOOST_CHECK(c ==
Vector3(-9., -9., -9.));
73 BOOST_AUTO_TEST_SUITE_END()