9 #include <boost/test/tools/output_test_stream.hpp>
10 #include <boost/test/unit_test.hpp>
25 BOOST_AUTO_TEST_SUITE(Visualization)
33 covariance << 4., 0., 0., 4.;
35 BOOST_CHECK(decops[0] == 4.);
36 BOOST_CHECK(decops[1] == 4.);
37 BOOST_CHECK(decops[2] == 0.);
41 covariance << 4., 4., 4., 4.;
43 BOOST_CHECK(decops[0] == 8.);
44 BOOST_CHECK(decops[1] == 0.);
49 covariance << 4., -4., -4., 4.;
51 BOOST_CHECK(decops[0] == 8.);
52 BOOST_CHECK(decops[1] == 0.);
57 covariance << 4., 2., 2., 4.;
59 BOOST_CHECK(decops[0] == 6.);
60 BOOST_CHECK(decops[1] == 2.);
65 covariance << 9., -3., -3, 4.;
76 BOOST_CHECK(objErrors.size() == 0);
77 for (
auto objerr : objErrors) {
78 std::cout << objerr << std::endl;
86 BOOST_CHECK(plyErrors.size() == 0);
87 for (
auto plyerr : plyErrors) {
88 std::cout << plyerr << std::endl;
92 BOOST_AUTO_TEST_SUITE_END()