-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSplitPointSelectStrategyTest.hpp
More file actions
executable file
·51 lines (32 loc) · 1.13 KB
/
SplitPointSelectStrategyTest.hpp
File metadata and controls
executable file
·51 lines (32 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef ROSSB83_POINT_SELECT_STRATEGY_TEST_HPP
#define ROSSB83_POINT_SELECT_STRATEGY_TEST_HPP
#include <assert.h>
#include "SplitPointStrategy.hpp"
#include "SplitPointSelectStrategy.hpp"
#include "SplitPointSelectStrategyTest.hpp"
namespace rossb83 {
class SplitPointSelectStrategyTest {
public:
SplitPointSelectStrategyTest() {
std::cout << "Running Split Point Sort Strategy tests..." << std::endl;
selectTest();
}
private:
void selectTest() {
std::cout << "split point select test..." << std::endl;
strategy = std::make_shared<SplitPointSelectStrategy<int>>();
std::vector<Point<int>> points;
points.push_back({7,2,8});
points.push_back({1,6,4});
points.push_back({9,8,0});
points.push_back({4,9,9});
points.push_back({5,0,1});
Point<int> p = strategy->splitPoint(points,0,0,4);
//assert(points[2][0] == 4);
//strategy->splitPoint(points,1,1,4);
//assert(points[3][1] == 8);
}
std::shared_ptr<SplitPointStrategy<int>> strategy;
}; // class SplitPointSelectStrategyTest
} // namespace rossb83
#endif // ROSSB83_SPLIT_POINT_SELECT_STRATEGY_TEST_HPP