9 #include <boost/test/tools/output_test_stream.hpp>
10 #include <boost/test/unit_test.hpp>
31 BOOST_AUTO_TEST_SUITE(Visualization)
39 covariance << 4., 0., 0., 4.;
41 BOOST_CHECK(decops[0] == 4.);
42 BOOST_CHECK(decops[1] == 4.);
43 BOOST_CHECK(decops[2] == 0.);
47 covariance << 4., 4., 4., 4.;
49 BOOST_CHECK(decops[0] == 8.);
50 BOOST_CHECK(decops[1] == 0.);
55 covariance << 4., -4., -4., 4.;
57 BOOST_CHECK(decops[0] == 8.);
58 BOOST_CHECK(decops[1] == 0.);
63 covariance << 4., 2., 2., 4.;
65 BOOST_CHECK(decops[0] == 6.);
66 BOOST_CHECK(decops[1] == 2.);
71 covariance << 9., -3., -3, 4.;
82 BOOST_CHECK(objErrors.empty());
83 for (
const auto& objerr : objErrors) {
84 std::cout << objerr << std::endl;
92 BOOST_CHECK(plyErrors.empty());
93 for (
const auto& plyerr : plyErrors) {
94 std::cout << plyerr << std::endl;
98 BOOST_AUTO_TEST_SUITE_END()