|
FEAT 3
Finite Element Analysis Toolbox
|
#include <kernel/base_header.hpp>#include <kernel/backend.hpp>#include <kernel/util/type_traits.hpp>#include <kernel/util/exception.hpp>#include <kernel/util/math.hpp>#include <string>#include <exception>#include <list>#include <typeinfo>#include <cstdlib>#include <iostream>#include <algorithm>#include <cmath>Go to the source code of this file.
Classes | |
| class | FEAT::TestSystem::TestFailedException |
| exception thrown by the check method in UnitTest More... | |
| class | FEAT::TestSystem::TestList |
| list of all instantiated tests More... | |
| class | FEAT::TestSystem::TestList::DeleteOnDestruction |
| class | FEAT::TestSystem::UnitTest |
| base class for all Tests More... | |
Namespaces | |
| namespace | FEAT |
| FEAT namespace. | |
| namespace | FEAT::TestSystem |
| TestSystem namespace. | |
Macros | |
| #define | CHECK_INTERNAL(was_ok, message) |
| #define | TEST(pre, test, post) |
| runs the given test with pre- and postprocessing More... | |
| #define | TEST_CHECK(a) |
| checks if a is true More... | |
| #define | TEST_CHECK_EQUAL(a, b) |
| checks if a == b More... | |
| #define | TEST_CHECK_EQUAL_WITHIN_EPS(a, b, eps) |
| checks if |a - b| <= epsilon More... | |
| #define | TEST_CHECK_IN_RANGE(x, a, b) |
| checks if a <= x <= b More... | |
| #define | TEST_CHECK_LESS_THAN(a, b) |
| checks if a < b More... | |
| #define | TEST_CHECK_MSG(a, msg) |
checks if a is true; prints msg if a is false More... | |
| #define | TEST_CHECK_NOT_EQUAL(a, b) |
| checks if a != b More... | |
| #define | TEST_CHECK_RELATIVE(a, b, eps) |
| checks if |a - b| <= epsilon*|b| More... | |
| #define | TEST_CHECK_STRINGIFY_EQUAL(a, b) |
| checks if stringify(a) == stringify(b) More... | |
| #define | TEST_CHECK_THROWS(a, b) |
| checks if a throws an exception of type b More... | |
Functions | |
| template<typename DT_ > | |
| DT_ | FEAT::TestSystem::relaxed_tol () |
| template<> | |
| double | FEAT::TestSystem::relaxed_tol< double > () |
| template<> | |
| float | FEAT::TestSystem::relaxed_tol< float > () |
| template<typename DT_ > | |
| DT_ | FEAT::TestSystem::tol () |
| template<> | |
| double | FEAT::TestSystem::tol< double > () |
| template<> | |
| float | FEAT::TestSystem::tol< float > () |
Implementation of Test and related classes.
Definition in file test_system.hpp.
| #define CHECK_INTERNAL | ( | was_ok, | |
| message | |||
| ) |
Definition at line 24 of file test_system.hpp.
| #define TEST | ( | pre, | |
| test, | |||
| post | |||
| ) |
runs the given test with pre- and postprocessing
Definition at line 462 of file test_system.hpp.
| #define TEST_CHECK | ( | a | ) |
checks if a is true
Definition at line 400 of file test_system.hpp.
| #define TEST_CHECK_EQUAL | ( | a, | |
| b | |||
| ) |
checks if a == b
Definition at line 374 of file test_system.hpp.
| #define TEST_CHECK_EQUAL_WITHIN_EPS | ( | a, | |
| b, | |||
| eps | |||
| ) |
checks if |a - b| <= epsilon
Definition at line 435 of file test_system.hpp.
| #define TEST_CHECK_IN_RANGE | ( | x, | |
| a, | |||
| b | |||
| ) |
checks if a <= x <= b
Definition at line 386 of file test_system.hpp.
| #define TEST_CHECK_LESS_THAN | ( | a, | |
| b | |||
| ) |
checks if a < b
Definition at line 456 of file test_system.hpp.
| #define TEST_CHECK_MSG | ( | a, | |
| msg | |||
| ) |
checks if a is true; prints msg if a is false
Definition at line 406 of file test_system.hpp.
| #define TEST_CHECK_NOT_EQUAL | ( | a, | |
| b | |||
| ) |
checks if a != b
Definition at line 380 of file test_system.hpp.
| #define TEST_CHECK_RELATIVE | ( | a, | |
| b, | |||
| eps | |||
| ) |
checks if |a - b| <= epsilon*|b|
Definition at line 445 of file test_system.hpp.
| #define TEST_CHECK_STRINGIFY_EQUAL | ( | a, | |
| b | |||
| ) |
checks if stringify(a) == stringify(b)
Definition at line 392 of file test_system.hpp.
| #define TEST_CHECK_THROWS | ( | a, | |
| b | |||
| ) |
checks if a throws an exception of type b
Definition at line 412 of file test_system.hpp.