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
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
6bc70343
Commit
6bc70343
authored
Jun 17, 2014
by
PIACIBELLO Cyrille
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos
parent
61c7edb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
UTests/FUTester.hpp
UTests/FUTester.hpp
+13
-13
No files found.
UTests/FUTester.hpp
View file @
6bc70343
...
...
@@ -61,8 +61,8 @@ class FUTester{
int
currentTest
;
//< current processing test in the run
int
currentStep
;
//< current processing step in the run
int
fail
l
edSteps
;
//< number of failed step in the current test
int
fail
l
edTests
;
//< number of failed tests
int
failedSteps
;
//< number of failed step in the current test
int
failedTests
;
//< number of failed tests
protected:
/** Constructor */
...
...
@@ -128,8 +128,8 @@ protected:
void
uassert
(
const
bool
result
){
++
currentStep
;
if
(
!
result
){
std
::
cout
<<
">> Step "
<<
currentStep
<<
" Fail
l
ed
\n
"
;
++
fail
l
edSteps
;
std
::
cout
<<
">> Step "
<<
currentStep
<<
" Failed
\n
"
;
++
failedSteps
;
}
}
...
...
@@ -137,7 +137,7 @@ protected:
* To test equality
* @param v1 value one
* @param v2 value 2
* if v1 is not equal v2 test fail
l
ed
* if v1 is not equal v2 test failed
*/
template
<
class
T
>
void
equal
(
const
T
&
v1
,
const
T
&
v2
){
...
...
@@ -148,7 +148,7 @@ protected:
* To test equality
* @param v1 value one
* @param v2 value 2
* if v1 is equal v2 test fail
l
ed
* if v1 is equal v2 test failed
*/
template
<
class
T
>
void
different
(
const
T
&
v1
,
const
T
&
v2
){
...
...
@@ -167,7 +167,7 @@ public :
TestClass
*
const
toTest
=
static_cast
<
TestClass
*>
(
this
);
currentTest
=
0
;
fail
l
edTests
=
0
;
failedTests
=
0
;
Before
();
...
...
@@ -175,7 +175,7 @@ public :
const
typename
std
::
list
<
TestFuncDescriptor
>::
const_iterator
end
=
tests
.
end
();
for
(
typename
std
::
list
<
TestFuncDescriptor
>::
iterator
iter
=
tests
.
begin
()
;
iter
!=
end
;
++
iter
){
currentStep
=
0
;
fail
l
edSteps
=
0
;
failedSteps
=
0
;
std
::
cout
<<
"[Start] "
<<
(
*
iter
).
name
<<
"
\n
"
;
...
...
@@ -184,9 +184,9 @@ public :
(
toTest
->*
ff
)();
PostTest
();
if
(
fail
l
edSteps
){
std
::
cout
<<
"[Finished] FAIL
LED ("
<<
failledSteps
<<
"/"
<<
currentStep
<<
" steps fail
led)
\n
"
;
++
fail
l
edTests
;
if
(
failedSteps
){
std
::
cout
<<
"[Finished] FAIL
ED ("
<<
failedSteps
<<
"/"
<<
currentStep
<<
" steps fai
led)
\n
"
;
++
failedTests
;
}
else
{
std
::
cout
<<
"[Finished] PASSED ("
<<
currentStep
<<
" steps)
\n
"
;
...
...
@@ -198,9 +198,9 @@ public :
After
();
std
::
cout
<<
"Test is over, "
<<
(
totalTests
-
fail
ledTests
)
<<
" Passed, "
<<
failledTests
<<
" Fail
led
\n
"
;
std
::
cout
<<
"Test is over, "
<<
(
totalTests
-
fail
edTests
)
<<
" Passed, "
<<
failedTests
<<
" Fai
led
\n
"
;
return
fail
l
edTests
;
return
failedTests
;
}
};
...
...
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