-
Notifications
You must be signed in to change notification settings - Fork 0
/
NoIndexTest.cpp
82 lines (61 loc) · 1.78 KB
/
NoIndexTest.cpp
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include "gtest/gtest.h"
#include "NoIndex.hpp"
#include "Common.hpp"
#include "TestsForAllIndexes.hpp"
using namespace std;
namespace geoIndex {
TEST(NoIndex, pointsWithinDistance_samePoint) {
NoIndex<Point> index;
pointsWithinDistance_samePoint(index);
}
TEST(NoIndex, pointsWithinDistance_coincidentPoints) {
NoIndex<Point> index;
pointsWithinDistance_coincidentPoints(index);
}
TEST(NoIndex, pointsWithinDistance_noPoints) {
NoIndex<Point> index;
pointsWithinDistance_noPoints(index);
}
TEST(NoIndex, pointsWithinDistance_onlyFarPoints) {
NoIndex<Point> index;
pointsWithinDistance_onlyFarPoints(index);
}
TEST(NoIndex, pointsWithinDistance_inAndOutPoints) {
NoIndex<Point> index;
pointsWithinDistance_inAndOutPoints(index);
}
TEST(NoIndex, pointsWithinDistance_exactDistance) {
NoIndex<Point> index;
pointsWithinDistance_exactDistance(index);
}
TEST(NoIndex, pointsWithinDistance_outputOrder) {
NoIndex<Point> index;
pointsWithinDistance_outputOrder(index);
}
TEST(NoIndex, pointsWithinDistance_squareDistance) {
NoIndex<Point> index;
pointsWithinDistance_squareDistance(index);
}
#ifdef GEO_INDEX_SAFETY_CHECKS
TEST(NoIndex, index_duplicatedIndex) {
NoIndex<Point> index;
index_duplicatedIndex(index);
}
TEST(NoIndex, pointsWithinDistance_negativeDistance) {
NoIndex<Point> index;
pointsWithinDistance_negativeDistance(index);
}
TEST(NoIndex, pointsWithinDistance_zeroDistance) {
NoIndex<Point> index;
pointsWithinDistance_zeroDistance(index);
}
TEST(NoIndex, pointsWithinDistance_NanDistance) {
NoIndex<Point> index;
pointsWithinDistance_NanDistance(index);
}
TEST(NoIndex, pointsWithinDistance_overflowDistance) {
NoIndex<Point> index;
pointsWithinDistance_overflowDistance(index);
}
#endif
}