Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
e3b274b3
Commit
e3b274b3
authored
Nov 20, 2009
by
Sebastian Eichelbaum
Browse files
[CHANGE] - fixed test, can be used with current logger implementation
parent
2522336d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
22 deletions
+18
-22
src/modules/marchingCubes/test/WMMarchingCubes_test.h
src/modules/marchingCubes/test/WMMarchingCubes_test.h
+18
-22
No files found.
src/modules/marchingCubes/test/WMMarchingCubes_test.h
View file @
e3b274b3
...
...
@@ -33,8 +33,8 @@
#include "../WMMarchingCubes.h"
#include "../../../common/WLogger.h"
static
bool
loggerInitialized
=
false
;
static
WLogger
logger
;
static
bool
loggerInitialized
=
false
;
/**
* Test for WMMarchingCubes
...
...
@@ -43,6 +43,23 @@ class WMMarchingCubesTest : public CxxTest::TestSuite
{
public:
/**
* Setup method called before every test case.
*/
void
setUp
()
{
if
(
!
loggerInitialized
)
{
std
::
cout
<<
"Initialize logger."
<<
std
::
endl
;
logger
.
setColored
(
false
);
// NOTE: the logger does not need to be run, since the logger main thread just prints the messages. If compiled in
// debug mode, the messages will be printed directly, without the logger thread.
//logger.run();
loggerInitialized
=
true
;
}
}
/**
* Ensure instatiation does not throw and does initialization right.
*/
...
...
@@ -201,13 +218,6 @@ public:
*/
void
testSaveZero
()
{
if
(
!
loggerInitialized
)
{
std
::
cout
<<
"Initialize logger."
<<
std
::
endl
;
logger
.
run
();
loggerInitialized
=
true
;
}
WMMarchingCubes
mc
;
WTriangleMesh
triMesh
;
std
::
string
fileName
=
"/tmp/dummerNameDenSichKeinerMerkenBraucht2.vtk"
;
...
...
@@ -221,13 +231,6 @@ public:
*/
void
testSaveInfinteNan
()
{
if
(
!
loggerInitialized
)
{
std
::
cout
<<
"Initialize logger."
<<
std
::
endl
;
logger
.
run
();
loggerInitialized
=
true
;
}
WMMarchingCubes
mc
;
WTriangleMesh
triMesh
;
...
...
@@ -271,13 +274,6 @@ public:
*/
void
testSaveAndLoad
()
{
if
(
!
loggerInitialized
)
{
std
::
cout
<<
"Initialize logger."
<<
std
::
endl
;
logger
.
run
();
loggerInitialized
=
true
;
}
WMMarchingCubes
mc
;
WTriangleMesh
triMesh
;
...
...
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