OpenWalnut  1.4.0
Public Member Functions
WMatrixSymTest Class Reference

Unit test this LookUp table class. More...

#include <WMatrixSym_test.h>

+ Inheritance diagram for WMatrixSymTest:

List of all members.

Public Member Functions

void testOperatorOn3x3Matrix (void)
 Only the Elements of the upper/lower sym.
void testAccessOn3x3Matrix (void)
 Access to elements on main diagonal is forbidden.
void testSetDataWithInvalidLengthForDimension (void)
 If new elements are set via the setData() method then it has to be checked if the dimension is valid for the number of elements which are given.
void testInvalidAccessOnMainDiagonal (void)
 Accessing diagonal elements is forbidden and an exception should be thrown.
void testToString (void)
 Renders the matrix to a string, where each row is in a separate line.
void testOutputStream (void)
 There should be an output operator for symmetric matrices.
void testInputStream (void)
 There should be an input operator for symmetric matrices, reading data into a given matrix.

Detailed Description

Unit test this LookUp table class.

All test performed on matrices with double as element type.

Definition at line 75 of file WMatrixSym_test.h.


Member Function Documentation

void WMatrixSymTest::testAccessOn3x3Matrix ( void  ) [inline]

Access to elements on main diagonal is forbidden.

Then other acess should be symmetric.

Definition at line 91 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData().

void WMatrixSymTest::testInputStream ( void  ) [inline]

There should be an input operator for symmetric matrices, reading data into a given matrix.

Definition at line 156 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData().

Accessing diagonal elements is forbidden and an exception should be thrown.

Definition at line 117 of file WMatrixSym_test.h.

References WException::what().

void WMatrixSymTest::testOperatorOn3x3Matrix ( void  ) [inline]

Only the Elements of the upper/lower sym.

Matrix should be stored.

Definition at line 81 of file WMatrixSym_test.h.

References WMatrixSym< T >::m_data.

void WMatrixSymTest::testOutputStream ( void  ) [inline]

There should be an output operator for symmetric matrices.

Definition at line 140 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData().

If new elements are set via the setData() method then it has to be checked if the dimension is valid for the number of elements which are given.

Definition at line 106 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData(), and WException::what().

void WMatrixSymTest::testToString ( void  ) [inline]

Renders the matrix to a string, where each row is in a separate line.

Definition at line 127 of file WMatrixSym_test.h.

References WMatrixSym< T >::setData(), and WMatrixSym< T >::toString().


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