9 #include <boost/test/tools/output_test_stream.hpp>
10 #include <boost/test/unit_test.hpp>
16 using boost::test_tools::output_test_stream;
21 BOOST_AUTO_TEST_SUITE(Utilities)
24 output_test_stream output;
30 BOOST_CHECK_EQUAL(ray2.origin(),
Vector2F(1, 1));
35 ray2.toStream(output);
36 BOOST_CHECK(!output.is_empty(
true));
44 BOOST_CHECK_EQUAL(ray3.origin(),
Vector3F(1, 2, 3));
48 ray3.toStream(output);
49 BOOST_CHECK(!output.is_empty(
true));
55 BOOST_AUTO_TEST_SUITE_END()