OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WTensorBaseSymTest Class Reference

Test class for WTensorBaseSym. More...

#include <WTensorBase_test.h>

+ Inheritance diagram for WTensorBaseSymTest:
+ Collaboration diagram for WTensorBaseSymTest:

Public Member Functions

void testTensorBaseSymConstructor ()
 The standard constructor should allocate enough memory and set all elements to zero. More...
 
void testWTensorBaseSymCopyConstructor ()
 The copy constructor should copy all values. More...
 
void testWTensorBaseSymCopyOperatorSimple ()
 Test the copy operator. More...
 
void testWTensorBaseSymCopyOperatorSelfCopy ()
 Test if the copy operator handles assignments of variables to themselves correctly. More...
 
void testWTensorBaseSymArrayAccessErrorConditions ()
 Test if the access operator correctly throws Exceptions only when the input indices are invalid. More...
 
void testWTensorBaseSymArrayAccess ()
 Test if the array access operator returns the correct elements. More...
 
void testWTensorBaseSymAccessOperatorPermutations ()
 Test if operator [] correctly maps permutations of the same set of indices to the same array positions. More...
 
void testWTensorBaseSymVectorAccess ()
 Test the std::vector version of operator [] for correct handling of various input vector sizes. More...
 
void testWTensorBaseSymCompareOperator ()
 Test if operator == works correctly. More...
 
void testWTensorBaseSymCompareOperator2 ()
 Test if operator != works correctly. More...
 

Detailed Description

Test class for WTensorBaseSym.

Note
We cannot test invalid template parameters here, as these should lead to compiler errors.

Definition at line 985 of file WTensorBase_test.h.

Member Function Documentation

◆ testTensorBaseSymConstructor()

void WTensorBaseSymTest::testTensorBaseSymConstructor ( )
inline

The standard constructor should allocate enough memory and set all elements to zero.

Definition at line 991 of file WTensorBase_test.h.

◆ testWTensorBaseSymAccessOperatorPermutations()

void WTensorBaseSymTest::testWTensorBaseSymAccessOperatorPermutations ( )
inline

Test if operator [] correctly maps permutations of the same set of indices to the same array positions.

Definition at line 1561 of file WTensorBase_test.h.

◆ testWTensorBaseSymArrayAccess()

void WTensorBaseSymTest::testWTensorBaseSymArrayAccess ( )
inline

Test if the array access operator returns the correct elements.

Definition at line 1457 of file WTensorBase_test.h.

◆ testWTensorBaseSymArrayAccessErrorConditions()

void WTensorBaseSymTest::testWTensorBaseSymArrayAccessErrorConditions ( )
inline

Test if the access operator correctly throws Exceptions only when the input indices are invalid.

Definition at line 1311 of file WTensorBase_test.h.

◆ testWTensorBaseSymCompareOperator()

void WTensorBaseSymTest::testWTensorBaseSymCompareOperator ( )
inline

Test if operator == works correctly.

Definition at line 1737 of file WTensorBase_test.h.

◆ testWTensorBaseSymCompareOperator2()

void WTensorBaseSymTest::testWTensorBaseSymCompareOperator2 ( )
inline

Test if operator != works correctly.

Definition at line 1875 of file WTensorBase_test.h.

◆ testWTensorBaseSymCopyConstructor()

void WTensorBaseSymTest::testWTensorBaseSymCopyConstructor ( )
inline

The copy constructor should copy all values.

Definition at line 1053 of file WTensorBase_test.h.

◆ testWTensorBaseSymCopyOperatorSelfCopy()

void WTensorBaseSymTest::testWTensorBaseSymCopyOperatorSelfCopy ( )
inline

Test if the copy operator handles assignments of variables to themselves correctly.

Definition at line 1267 of file WTensorBase_test.h.

◆ testWTensorBaseSymCopyOperatorSimple()

void WTensorBaseSymTest::testWTensorBaseSymCopyOperatorSimple ( )
inline

Test the copy operator.

Definition at line 1168 of file WTensorBase_test.h.

◆ testWTensorBaseSymVectorAccess()

void WTensorBaseSymTest::testWTensorBaseSymVectorAccess ( )
inline

Test the std::vector version of operator [] for correct handling of various input vector sizes.

Definition at line 1632 of file WTensorBase_test.h.


The documentation for this class was generated from the following file: