42#ifndef TEUCHOS_LOCAL_TESTING_HELPERS_HPP
43#define TEUCHOS_LOCAL_TESTING_HELPERS_HPP
63#define ECHO( statement ) \
64 TEUCHOS_ECHO( statement, out )
71#define TEST_ASSERT( v1 ) \
72 TEUCHOS_TEST_ASSERT( v1, out, success )
79#define TEST_EQUALITY_CONST( v1, v2 ) \
80 TEUCHOS_TEST_EQUALITY_CONST( v1, v2, out, success )
87#define TEST_EQUALITY( v1, v2 ) \
88 TEUCHOS_TEST_EQUALITY( v1, v2, out, success )
95#define TEST_INEQUALITY_CONST( v1, v2 ) \
96 TEUCHOS_TEST_INEQUALITY_CONST( v1, v2, out, success )
103#define TEST_INEQUALITY( v1, v2 ) \
104 TEUCHOS_TEST_INEQUALITY( v1, v2, out, success )
112#define TEST_FLOATING_EQUALITY( v1, v2, tol ) \
113 TEUCHOS_TEST_FLOATING_EQUALITY( v1, v2, tol, out, success )
120#define TEST_ITER_EQUALITY( iter1, iter2 ) \
121 TEUCHOS_TEST_ITER_EQUALITY( iter1, iter2, out, success )
128#define TEST_ITER_INEQUALITY( iter1, iter2 ) \
129 TEUCHOS_TEST_ITER_INEQUALITY( iter1, iter2, out, success )
136#define TEST_ARRAY_ELE_EQUALITY( a, i, val ) \
137 TEUCHOS_TEST_ARRAY_ELE_EQUALITY( a, i, val, false, out, local_success )
144#define TEST_ARRAY_ELE_INEQUALITY( a, i, val ) \
145 TEUCHOS_TEST_ARRAY_ELE_INEQUALITY( a, i, val, false, out, local_success )
152#define TEST_COMPARE( v1, comp, v2 ) \
153 TEUCHOS_TEST_COMPARE( v1, comp, v2, out, success )
161#define TEST_COMPARE_CONST( v1, comp, v2 ) \
162 TEUCHOS_TEST_COMPARE_CONST( v1, comp, v2, out, success )
172#define TEST_COMPARE_ARRAYS( a1, a2 ) \
174 const bool l_result = compareArrays(a1,#a1,a2,#a2,out); \
175 if (!l_result) success = false; \
186#define TEST_COMPARE_FLOATING_ARRAYS( a1, a2, tol ) \
188 const bool result = compareFloatingArrays(a1,#a1,a2,#a2,tol,out); \
189 if (!result) success = false; \
198#define TEST_THROW( code, ExceptType ) \
199 TEUCHOS_TEST_THROW( code, ExceptType, out, success )
206#define TEST_NOTHROW( code ) \
207 TEUCHOS_TEST_NOTHROW( code, out, success )
Utilities to make writing tests easier.