Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixGraph
Commits
a157cb91
Commit
a157cb91
authored
Dec 20, 2020
by
Pierre Aubert
Browse files
Add test
parent
dd44aaae
Pipeline
#96693
passed with stages
in 15 minutes and 18 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
TESTS/TEST_PNTREE_LIGHT/main.cpp
TESTS/TEST_PNTREE_LIGHT/main.cpp
+17
-1
No files found.
TESTS/TEST_PNTREE_LIGHT/main.cpp
View file @
a157cb91
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment