9 #include <boost/test/tools/output_test_stream.hpp>
10 #include <boost/test/unit_test.hpp>
15 using boost::test_tools::output_test_stream;
20 BOOST_AUTO_TEST_SUITE(Utilities)
24 using Vector2F = Eigen::Matrix<float, 2, 1>;
32 BOOST_CHECK_EQUAL(ray2.origin(),
Vector2F(1, 1));
37 ray2.toStream(output);
38 BOOST_CHECK(!output.is_empty(
true));
41 using Vector3F = Eigen::Matrix<float, 3, 1>;
43 Vector3F dir3(1, 2, 1);
47 BOOST_CHECK_EQUAL(ray3.origin(),
Vector3F(1, 2, 3));
51 ray3.toStream(output);
52 BOOST_CHECK(!output.is_empty(
true));
58 BOOST_AUTO_TEST_SUITE_END()