9 #include <boost/test/tools/output_test_stream.hpp>
10 #include <boost/test/unit_test.hpp>
24 BOOST_AUTO_TEST_SUITE(Visualization)
32 covariance << 4., 0., 0., 4.;
34 BOOST_CHECK(decops[0] == 4.);
35 BOOST_CHECK(decops[1] == 4.);
36 BOOST_CHECK(decops[2] == 0.);
40 covariance << 4., 4., 4., 4.;
42 BOOST_CHECK(decops[0] == 8.);
43 BOOST_CHECK(decops[1] == 0.);
48 covariance << 4., -4., -4., 4.;
50 BOOST_CHECK(decops[0] == 8.);
51 BOOST_CHECK(decops[1] == 0.);
56 covariance << 4., 2., 2., 4.;
58 BOOST_CHECK(decops[0] == 6.);
59 BOOST_CHECK(decops[1] == 2.);
64 covariance << 9., -3., -3, 4.;
75 BOOST_CHECK(objErrors.size() == 0);
76 for (
auto objerr : objErrors) {
77 std::cout << objerr << std::endl;
85 BOOST_CHECK(plyErrors.size() == 0);
86 for (
auto plyerr : plyErrors) {
87 std::cout << plyerr << std::endl;
91 BOOST_AUTO_TEST_SUITE_END()