Commit 6bc70343 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille
Browse files

Typos

parent 61c7edb8
...@@ -61,8 +61,8 @@ class FUTester{ ...@@ -61,8 +61,8 @@ class FUTester{
int currentTest; //< current processing test in the run int currentTest; //< current processing test in the run
int currentStep; //< current processing step in the run int currentStep; //< current processing step in the run
int failledSteps; //< number of failed step in the current test int failedSteps; //< number of failed step in the current test
int failledTests; //< number of failed tests int failedTests; //< number of failed tests
protected: protected:
/** Constructor */ /** Constructor */
...@@ -128,8 +128,8 @@ protected: ...@@ -128,8 +128,8 @@ protected:
void uassert(const bool result){ void uassert(const bool result){
++currentStep; ++currentStep;
if(!result){ if(!result){
std::cout << ">> Step " << currentStep << " Failled\n"; std::cout << ">> Step " << currentStep << " Failed\n";
++failledSteps; ++failedSteps;
} }
} }
...@@ -137,7 +137,7 @@ protected: ...@@ -137,7 +137,7 @@ protected:
* To test equality * To test equality
* @param v1 value one * @param v1 value one
* @param v2 value 2 * @param v2 value 2
* if v1 is not equal v2 test failled * if v1 is not equal v2 test failed
*/ */
template <class T> template <class T>
void equal(const T& v1, const T& v2){ void equal(const T& v1, const T& v2){
...@@ -148,7 +148,7 @@ protected: ...@@ -148,7 +148,7 @@ protected:
* To test equality * To test equality
* @param v1 value one * @param v1 value one
* @param v2 value 2 * @param v2 value 2
* if v1 is equal v2 test failled * if v1 is equal v2 test failed
*/ */
template <class T> template <class T>
void different(const T& v1, const T& v2){ void different(const T& v1, const T& v2){
...@@ -167,7 +167,7 @@ public : ...@@ -167,7 +167,7 @@ public :
TestClass* const toTest = static_cast<TestClass*>(this); TestClass* const toTest = static_cast<TestClass*>(this);
currentTest = 0; currentTest = 0;
failledTests = 0; failedTests = 0;
Before(); Before();
...@@ -175,7 +175,7 @@ public : ...@@ -175,7 +175,7 @@ public :
const typename std::list<TestFuncDescriptor>::const_iterator end = tests.end(); const typename std::list<TestFuncDescriptor>::const_iterator end = tests.end();
for(typename std::list<TestFuncDescriptor>::iterator iter = tests.begin() ; iter != end ; ++iter){ for(typename std::list<TestFuncDescriptor>::iterator iter = tests.begin() ; iter != end ; ++iter){
currentStep = 0; currentStep = 0;
failledSteps = 0; failedSteps = 0;
std::cout << "[Start] " << (*iter).name << "\n"; std::cout << "[Start] " << (*iter).name << "\n";
...@@ -184,9 +184,9 @@ public : ...@@ -184,9 +184,9 @@ public :
(toTest->*ff)(); (toTest->*ff)();
PostTest(); PostTest();
if(failledSteps){ if(failedSteps){
std::cout << "[Finished] FAILLED (" << failledSteps << "/" << currentStep<< " steps failled)\n"; std::cout << "[Finished] FAILED (" << failedSteps << "/" << currentStep<< " steps failed)\n";
++failledTests; ++failedTests;
} }
else{ else{
std::cout << "[Finished] PASSED (" << currentStep << " steps)\n"; std::cout << "[Finished] PASSED (" << currentStep << " steps)\n";
...@@ -198,9 +198,9 @@ public : ...@@ -198,9 +198,9 @@ public :
After(); After();
std::cout <<"Test is over, " << (totalTests-failledTests) << " Passed, " << failledTests << " Failled\n"; std::cout <<"Test is over, " << (totalTests-failedTests) << " Passed, " << failedTests << " Failed\n";
return failledTests; return failedTests;
} }
}; };
......
Supports Markdown
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