![]() |
Peano
|
#include <ScalarTest.h>
Public Member Functions | |
ScalarTest () | |
Constructor. | |
virtual | ~ScalarTest () |
Destructor, empty. | |
virtual void | run () |
Runs all tests. | |
virtual void | setUp () |
Sets up test environment. | |
![]() | |
TestCase (const std::string &testCaseName) | |
Constructor. | |
virtual | ~TestCase () |
Destructor. | |
int | getNumberOfErrors () const |
std::string | getTestCaseName () const |
Private Member Functions | |
void | testComparison () |
void | testAbs () |
Additional Inherited Members | |
![]() | |
TestCase ()=delete | |
![]() | |
const std::string | _testCaseName |
Name of the test case. | |
int | _errors |
Error counter. | |
bool | _error |
Indicate within macro if one specific validation failed. | |
Definition at line 15 of file ScalarTest.h.
tarch::la::tests::ScalarTest::ScalarTest | ( | ) |
Constructor.
Definition at line 9 of file ScalarTest.cpp.
|
virtual |
Destructor, empty.
Definition at line 33 of file ScalarTest.h.
|
virtual |
Runs all tests.
Implements tarch::tests::TestCase.
Definition at line 14 of file ScalarTest.cpp.
References testMethod.
|
virtual |
Sets up test environment.
Definition at line 43 of file ScalarTest.h.
|
private |
Definition at line 51 of file ScalarTest.cpp.
References a, tarch::la::abs(), and validateEquals.
|
private |
Definition at line 19 of file ScalarTest.cpp.
References a, tarch::la::equals(), tarch::la::greater(), tarch::la::greaterEquals(), tarch::la::smaller(), tarch::la::smallerEquals(), and validate.