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

Test class for WTensorBase. More...

#include <WTensorBase_test.h>

+ Inheritance diagram for WTensorBaseTest:
+ Collaboration diagram for WTensorBaseTest:

Public Member Functions

void testTensorBaseConstructor ()
 The standard constructor should allocate enough memory and set all elements to zero. More...
 
void testWTensorBaseCopyConstructor ()
 The copy constructor should copy all values. More...
 
void testWTensorBaseCopyOperatorSimple ()
 Test the copy operator. More...
 
void testWTensorBaseCopyOperatorSelfCopy ()
 Test if the copy operator handles assignments of variables to themselves correctly. More...
 
void testWTensorBaseArrayAccessErrorConditions ()
 Test if the access operator correctly throws Exceptions only when the input indices are invalid. More...
 
void testWTensorBaseArrayAccess ()
 Test if the array access operator returns the correct elements. More...
 
void testWTensorBaseVectorAccess ()
 Test the std::vector version of operator [] for correct handling of various input vector sizes. More...
 
void testWTensorBaseCompareOperator ()
 Test if operator == works correctly. More...
 
void testWTensorBaseCompareOperator2 ()
 Test if operator != works correctly. More...
 

Detailed Description

Test class for WTensorBase.

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

Definition at line 50 of file WTensorBase_test.h.

Member Function Documentation

◆ testTensorBaseConstructor()

void WTensorBaseTest::testTensorBaseConstructor ( )
inline

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

Definition at line 59 of file WTensorBase_test.h.

◆ testWTensorBaseArrayAccess()

void WTensorBaseTest::testWTensorBaseArrayAccess ( )
inline

Test if the array access operator returns the correct elements.

Definition at line 523 of file WTensorBase_test.h.

◆ testWTensorBaseArrayAccessErrorConditions()

void WTensorBaseTest::testWTensorBaseArrayAccessErrorConditions ( )
inline

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

Definition at line 378 of file WTensorBase_test.h.

◆ testWTensorBaseCompareOperator()

void WTensorBaseTest::testWTensorBaseCompareOperator ( )
inline

Test if operator == works correctly.

Definition at line 756 of file WTensorBase_test.h.

◆ testWTensorBaseCompareOperator2()

void WTensorBaseTest::testWTensorBaseCompareOperator2 ( )
inline

Test if operator != works correctly.

Definition at line 902 of file WTensorBase_test.h.

◆ testWTensorBaseCopyConstructor()

void WTensorBaseTest::testWTensorBaseCopyConstructor ( )
inline

The copy constructor should copy all values.

Definition at line 120 of file WTensorBase_test.h.

◆ testWTensorBaseCopyOperatorSelfCopy()

void WTensorBaseTest::testWTensorBaseCopyOperatorSelfCopy ( )
inline

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

Definition at line 334 of file WTensorBase_test.h.

◆ testWTensorBaseCopyOperatorSimple()

void WTensorBaseTest::testWTensorBaseCopyOperatorSimple ( )
inline

Test the copy operator.

Definition at line 212 of file WTensorBase_test.h.

◆ testWTensorBaseVectorAccess()

void WTensorBaseTest::testWTensorBaseVectorAccess ( )
inline

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

Definition at line 640 of file WTensorBase_test.h.


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