-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSplitPointSortStrategyTest.hpp
More file actions
executable file
·48 lines (31 loc) · 1.05 KB
/
SplitPointSortStrategyTest.hpp
File metadata and controls
executable file
·48 lines (31 loc) · 1.05 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
#ifndef ROSSB83_POINT_SORT_STRATEGY_TEST_HPP
#define ROSSB83_POINT_SORT_STRATEGY_TEST_HPP
#include <assert.h>
#include "SplitPointStrategy.hpp"
#include "SplitPointSortStrategy.hpp"
namespace rossb83 {
class SplitPointSortStrategyTest {
public:
SplitPointSortStrategyTest() {
std::cout << "Running Split Point Sort Strategy tests..." << std::endl;
sortTest();
}
private:
void sortTest() {
std::cout << "split point sort test..." << std::endl;
strategy = std::make_shared<SplitPointSortStrategy<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});
//strategy->splitPoint(points,0,1,3);
//assert(points[2][0] == 4);
//strategy->splitPoint(points,1,1,4);
//assert(points[3][1] == 8);
}
std::shared_ptr<SplitPointStrategy<int>> strategy;
}; // class SplitPointSortStrategyTest
} // namespace rossb83
#endif // ROSSB83_SPLIT_POINT_SORT_STRATEGY_TEST_HPP