Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
6bc70343
Commit
6bc70343
authored
Jun 17, 2014
by
PIACIBELLO Cyrille
Browse files
Typos
parent
61c7edb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
L
ED ("
<<
fail
l
edSteps
<<
"/"
<<
currentStep
<<
" steps fail
l
ed)
\n
"
;
++
fail
l
edTests
;
if
(
failedSteps
){
std
::
cout
<<
"[Finished] FAILED ("
<<
failedSteps
<<
"/"
<<
currentStep
<<
" steps failed)
\n
"
;
++
failedTests
;
}
else
{
std
::
cout
<<
"[Finished] PASSED ("
<<
currentStep
<<
" steps)
\n
"
;
...
...
@@ -198,9 +198,9 @@ public :
After
();
std
::
cout
<<
"Test is over, "
<<
(
totalTests
-
fail
l
edTests
)
<<
" Passed, "
<<
fail
l
edTests
<<
" Fail
l
ed
\n
"
;
std
::
cout
<<
"Test is over, "
<<
(
totalTests
-
failedTests
)
<<
" Passed, "
<<
failedTests
<<
" Failed
\n
"
;
return
fail
l
edTests
;
return
failedTests
;
}
};
...
...
Write
Preview
Supports
Markdown
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