Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
ArrayView_test.cpp File Reference
Include dependency graph for ArrayView_test.cpp:

Go to the source code of this file.

Macros

#define TEST_EQUALITY_CONST(v1, v2)
#define TEST_EQUALITY(v1, v2)
#define TEST_ITER_EQUALITY(iter1, iter2)
#define TEST_ARRAY_ELE_EQUALITY(a, i, val)
#define TEST_COMPARE(v1, comp, v2)
#define TEST_COMPARE_ARRAYS(a1, a2)
#define TEST_THROW(code, ExceptType)
#define TEST_NOTHROW(code)

Functions

template<class T>
bool testArrayView (const int n, Teuchos::FancyOStream &out)
int main (int argc, char *argv[])

Macro Definition Documentation

◆ TEST_EQUALITY_CONST

#define TEST_EQUALITY_CONST ( v1,
v2 )
Value:
TEUCHOS_TEST_EQUALITY_CONST( v1, v2, out, success )
#define TEUCHOS_TEST_EQUALITY_CONST(v1, v2, out, success)
Test that an object is equal to a given constant.

Definition at line 67 of file ArrayView_test.cpp.

◆ TEST_EQUALITY

#define TEST_EQUALITY ( v1,
v2 )
Value:
TEUCHOS_TEST_EQUALITY( v1, v2, out, success )
#define TEUCHOS_TEST_EQUALITY(v1, v2, out, success)
Test that two values are equal.

Definition at line 70 of file ArrayView_test.cpp.

◆ TEST_ITER_EQUALITY

#define TEST_ITER_EQUALITY ( iter1,
iter2 )
Value:
TEUCHOS_TEST_ITER_EQUALITY( iter1, iter2, out, success )
#define TEUCHOS_TEST_ITER_EQUALITY(iter1, iter2, out, success)
Test if two iterators are equal.

Definition at line 73 of file ArrayView_test.cpp.

◆ TEST_ARRAY_ELE_EQUALITY

#define TEST_ARRAY_ELE_EQUALITY ( a,
i,
val )
Value:
TEUCHOS_TEST_ARRAY_ELE_EQUALITY( a, i, val, false, out, local_success )
#define TEUCHOS_TEST_ARRAY_ELE_EQUALITY(a, i, val, printPass, out, success)
Test that an array element value is equal to a given constant.

Definition at line 76 of file ArrayView_test.cpp.

◆ TEST_COMPARE

#define TEST_COMPARE ( v1,
comp,
v2 )
Value:
TEUCHOS_TEST_COMPARE( v1, comp, v2, out, success )
#define TEUCHOS_TEST_COMPARE(v1, comp, v2, out, success)
Compare two objects using an input comparsion operator.

Definition at line 79 of file ArrayView_test.cpp.

◆ TEST_COMPARE_ARRAYS

#define TEST_COMPARE_ARRAYS ( a1,
a2 )
Value:
{ \
const bool result = compareArrays(a1,#a1,a2,#a2,out); \
if (!result) success = false; \
}

Definition at line 82 of file ArrayView_test.cpp.

◆ TEST_THROW

#define TEST_THROW ( code,
ExceptType )
Value:
TEUCHOS_TEST_THROW( code, ExceptType, out, success )
#define TEUCHOS_TEST_THROW(code, ExceptType, out, success)
Test that the chunk of code 'code' throws an expected exception.

Definition at line 88 of file ArrayView_test.cpp.

◆ TEST_NOTHROW

#define TEST_NOTHROW ( code)
Value:
TEUCHOS_TEST_NOTHROW( code, out, success )
#define TEUCHOS_TEST_NOTHROW(code, out, success)
Test that a chunk of code does not throw any exceptions.

Definition at line 91 of file ArrayView_test.cpp.

Function Documentation

◆ testArrayView()

template<class T>
bool testArrayView ( const int n,
Teuchos::FancyOStream & out )

Definition at line 101 of file ArrayView_test.cpp.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 385 of file ArrayView_test.cpp.