15#define BOOST_TEST_MODULE Test MCHContour SegmentTree
16#define BOOST_TEST_MAIN
17#define BOOST_TEST_DYN_LINK
19#include <boost/test/unit_test.hpp>
20#include <boost/test/data/test_case.hpp>
22#include "../include/MCHContour/SegmentTree.h"
40 std::vector<int>
yposInt{0, 1, 2, 3, 4, 5, 6, 7, 8};
41 std::vector<double>
yposDouble{0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8};
47BOOST_AUTO_TEST_SUITE(o2_mch_contour)
49BOOST_FIXTURE_TEST_SUITE(segmenttree,
YPOS)
53 std::vector<int> onlyOneElement{0};
65 std::ostringstream os;
70 std::string expectedOutput =
100 std::ostringstream os;
105 std::string expectedOutput =
152 std::vector<double> ypos{-2.0, -1.5, -1, 0};
154 auto right = root->right();
160BOOST_AUTO_TEST_SUITE_END()
161BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(NeedAtLeastTwoValuesToBuildASegmentTree)
Node & setLeft(Node *left)
Node & setRight(Node *right)
Node< T > * createSegmentTree(std::vector< T > values)
std::vector< int > yposInt
std::vector< double > yposDouble
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())