| 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 ais true; printsmsgifais 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... | |
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 394 of file test_system.hpp.
| #define TEST_CHECK | ( | a | ) | 
checks if a is true
Definition at line 332 of file test_system.hpp.
| #define TEST_CHECK_EQUAL | ( | a, | |
| b | |||
| ) | 
checks if a == b
Definition at line 306 of file test_system.hpp.
| #define TEST_CHECK_EQUAL_WITHIN_EPS | ( | a, | |
| b, | |||
| eps | |||
| ) | 
checks if |a - b| <= epsilon
Definition at line 367 of file test_system.hpp.
| #define TEST_CHECK_IN_RANGE | ( | x, | |
| a, | |||
| b | |||
| ) | 
checks if a <= x <= b
Definition at line 318 of file test_system.hpp.
| #define TEST_CHECK_LESS_THAN | ( | a, | |
| b | |||
| ) | 
checks if a < b
Definition at line 388 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 338 of file test_system.hpp.
| #define TEST_CHECK_NOT_EQUAL | ( | a, | |
| b | |||
| ) | 
checks if a != b
Definition at line 312 of file test_system.hpp.
| #define TEST_CHECK_RELATIVE | ( | a, | |
| b, | |||
| eps | |||
| ) | 
checks if |a - b| <= epsilon*|b|
Definition at line 377 of file test_system.hpp.
| #define TEST_CHECK_STRINGIFY_EQUAL | ( | a, | |
| b | |||
| ) | 
checks if stringify(a) == stringify(b)
Definition at line 324 of file test_system.hpp.
| #define TEST_CHECK_THROWS | ( | a, | |
| b | |||
| ) | 
checks if a throws an exception of type b
Definition at line 344 of file test_system.hpp.