Teuchos_LocalTestingHelpers.hpp File Reference
Utilities to make writing tests easier.
More...
#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 ) |
|
|
Detailed Description
Utilities to make writing tests easier.
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 Documentation
#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_EQUALITY |
( |
v1, |
|
|
v2 |
|
) |
TEUCHOS_TEST_EQUALITY( v1, v2, out, success ) |
#define TEST_EQUALITY_CONST |
( |
v1, |
|
|
v2 |
|
) |
TEUCHOS_TEST_EQUALITY_CONST( v1, v2, out, success ) |
#define TEST_FLOATING_EQUALITY |
( |
v1, |
|
|
v2, |
|
|
tol |
|
) |
TEUCHOS_TEST_FLOATING_EQUALITY( v1, v2, tol, out, success ) |
#define TEST_INEQUALITY |
( |
v1, |
|
|
v2 |
|
) |
TEUCHOS_TEST_INEQUALITY( v1, v2, out, success ) |
#define TEST_INEQUALITY_CONST |
( |
v1, |
|
|
v2 |
|
) |
TEUCHOS_TEST_INEQUALITY_CONST( v1, v2, out, success ) |
#define TEST_ITER_EQUALITY |
( |
iter1, |
|
|
iter2 |
|
) |
TEUCHOS_TEST_ITER_EQUALITY( iter1, iter2, out, success ) |
#define TEST_NOTHROW |
( |
code |
|
) |
TEUCHOS_TEST_NOTHROW( code, out, success ) |
#define TEST_THROW |
( |
code, |
|
|
ExceptType |
|
) |
TEUCHOS_TEST_THROW( code, ExceptType, out, success ) |