Commit a157cb91 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add test

parent dd44aaae
Pipeline #96693 passed with stages
in 15 minutes and 18 seconds
......@@ -16,6 +16,8 @@ using namespace std;
#define NB_POINT_3D 8lu
#define NB_POINT_3D_TOTAL (NB_POINT_3D*NB_POINT_3D*NB_POINT_3D)
///Tests the basis of the quadtree
void testBaseQuadTree(){
size_t nbPoint(NB_POINT);
......@@ -114,10 +116,24 @@ void testBaseQuadTree3d(){
else cout << "testBaseQuadTree3d : data (11.0, 19.0) = NULL" << endl;
}
///Check the function isNeighbourSearchFinised
/** @return true on success, false otherwise
*/
bool checkIsNeigbourFinished(){
bool value(true);
bool b(true);
b &= isNeighbourSearchFinised(&value, 1lu);
value = false;
b &= !isNeighbourSearchFinised(&value, 1lu);
return b;
}
int main(int argc, char** argv){
bool b(checkIsNeigbourFinished());
testBaseQuadTree();
testBaseQuadTree3d();
return 0;
return b - 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment