#include "Teuchos_TestingHelpers.hpp"
Go to the source code of this file.
Defines | |
| #define | TEST_EQUALITY_CONST(v1, v2) TEUCHOS_TEST_EQUALITY_CONST( v1, v2, out, success ) |
| | |
| #define | TEST_EQUALITY(v1, v2) TEUCHOS_TEST_EQUALITY( v1, v2, out, success ) |
| | |
| #define | TEST_INEQUALITY_CONST(v1, v2) TEUCHOS_TEST_INEQUALITY_CONST( v1, v2, out, success ) |
| | |
| #define | TEST_INEQUALITY(v1, v2) TEUCHOS_TEST_INEQUALITY( v1, v2, out, success ) |
| | |
| #define | TEST_FLOATING_EQUALITY(v1, v2, tol) TEUCHOS_TEST_FLOATING_EQUALITY( v1, v2, tol, out, success ) |
| | |
| #define | TEST_ITER_EQUALITY(iter1, iter2) TEUCHOS_TEST_ITER_EQUALITY( iter1, iter2, out, success ) |
| | |
| #define | TEST_ARRAY_ELE_EQUALITY(a, i, val) TEUCHOS_TEST_ARRAY_ELE_EQUALITY( a, i, val, false, out, local_success ) |
| | |
| #define | TEST_ARRAY_ELE_INEQUALITY(a, i, val) TEUCHOS_TEST_ARRAY_ELE_INEQUALITY( a, i, val, false, out, local_success ) |
| | |
| #define | TEST_COMPARE(v1, comp, v2) TEUCHOS_TEST_COMPARE( v1, comp, v2, out, success ) |
| | |
| #define | TEST_COMPARE_ARRAYS(a1, a2) |
| | |
| #define | TEST_COMPARE_FLOATING_ARRAYS(a1, a2, tol) |
| | |
| #define | TEST_THROW(code, ExceptType) TEUCHOS_TEST_THROW( code, ExceptType, out, success ) |
| | |
| #define | TEST_NOTHROW(code) TEUCHOS_TEST_NOTHROW( code, out, success ) |
| | |
WARNING! These macros are not namespaced, so you must only include it in *.cpp files for unit testing only!
Definition in file Teuchos_LocalTestingHelpers.hpp.
| #define TEST_EQUALITY_CONST | ( | v1, | |||
| v2 | ) | TEUCHOS_TEST_EQUALITY_CONST( v1, v2, out, success ) |
| #define TEST_EQUALITY | ( | v1, | |||
| v2 | ) | TEUCHOS_TEST_EQUALITY( v1, v2, out, success ) |
| #define TEST_INEQUALITY_CONST | ( | v1, | |||
| v2 | ) | TEUCHOS_TEST_INEQUALITY_CONST( v1, v2, out, success ) |
| #define TEST_INEQUALITY | ( | v1, | |||
| v2 | ) | TEUCHOS_TEST_INEQUALITY( v1, v2, out, success ) |
| #define TEST_FLOATING_EQUALITY | ( | v1, | |||
| v2, | |||||
| tol | ) | TEUCHOS_TEST_FLOATING_EQUALITY( v1, v2, tol, out, success ) |
| #define TEST_ITER_EQUALITY | ( | iter1, | |||
| iter2 | ) | TEUCHOS_TEST_ITER_EQUALITY( iter1, iter2, out, success ) |
| #define TEST_ARRAY_ELE_EQUALITY | ( | a, | |||
| i, | |||||
| val | ) | TEUCHOS_TEST_ARRAY_ELE_EQUALITY( a, i, val, false, out, local_success ) |
| #define TEST_ARRAY_ELE_INEQUALITY | ( | a, | |||
| i, | |||||
| val | ) | TEUCHOS_TEST_ARRAY_ELE_INEQUALITY( a, i, val, false, out, local_success ) |
| #define TEST_COMPARE | ( | v1, | |||
| comp, | |||||
| v2 | ) | TEUCHOS_TEST_COMPARE( v1, comp, v2, out, success ) |
| #define TEST_COMPARE_ARRAYS | ( | a1, | |||
| a2 | ) |
Value:
{ \
const bool result = compareArrays(a1,#a1,a2,#a2,out); \
if (!result) success = false; \
}
Definition at line 91 of file Teuchos_LocalTestingHelpers.hpp.
| #define TEST_COMPARE_FLOATING_ARRAYS | ( | a1, | |||
| a2, | |||||
| tol | ) |
Value:
{ \
const bool result = compareFloatingArrays(a1,#a1,a2,#a2,tol,out); \
if (!result) success = false; \
}
Definition at line 99 of file Teuchos_LocalTestingHelpers.hpp.
| #define TEST_THROW | ( | code, | |||
| ExceptType | ) | TEUCHOS_TEST_THROW( code, ExceptType, out, success ) |
| #define TEST_NOTHROW | ( | code | ) | TEUCHOS_TEST_NOTHROW( code, out, success ) |
1.4.7