OpenWalnut
1.4.0
|
UnitTests the WValueSet class. More...
#include <WValueSet_test.h>
Public Member Functions | |
void | testInstantiation (void) |
An instantiation should never throw an exception. | |
void | testGetNumberOfValues (void) |
The number of values retrieved is correct. | |
void | testRawSize (void) |
The raw size is the size of the number of integral elements inside this ValueSet. | |
void | testGetScalar (void) |
This function should return the i-th value if the value set is scalar. | |
void | testReadOnlyRawAccess (void) |
Raw Access should provide data access to the underlying array. | |
void | testGetWValue (void) |
This function should return the i-th WValue with of the used dimension (prerequisite the ValueSet has order 1) | |
void | testSubArrayInstantiation () |
A subarray should never exceed the valuesets boundaries and should not have a length of 0. | |
void | testSubArrayAccess () |
A subarray should return the correct elements. |
UnitTests the WValueSet class.
Definition at line 39 of file WValueSet_test.h.
void WValueSetTest::testGetNumberOfValues | ( | void | ) | [inline] |
The number of values retrieved is correct.
Definition at line 57 of file WValueSet_test.h.
References WValueSet< T >::size().
void WValueSetTest::testGetScalar | ( | void | ) | [inline] |
This function should return the i-th value if the value set is scalar.
Definition at line 90 of file WValueSet_test.h.
void WValueSetTest::testGetWValue | ( | void | ) | [inline] |
This function should return the i-th WValue with of the used dimension (prerequisite the ValueSet has order 1)
Definition at line 121 of file WValueSet_test.h.
References WValueSet< T >::getWValue(), and WValueSet< T >::size().
void WValueSetTest::testInstantiation | ( | void | ) | [inline] |
An instantiation should never throw an exception.
Definition at line 45 of file WValueSet_test.h.
void WValueSetTest::testRawSize | ( | void | ) | [inline] |
The raw size is the size of the number of integral elements inside this ValueSet.
Definition at line 75 of file WValueSet_test.h.
References WValueSet< T >::rawSize().
void WValueSetTest::testReadOnlyRawAccess | ( | void | ) | [inline] |
Raw Access should provide data access to the underlying array.
Definition at line 106 of file WValueSet_test.h.
References WValueSet< T >::rawData().
void WValueSetTest::testSubArrayAccess | ( | ) | [inline] |
A subarray should return the correct elements.
Definition at line 169 of file WValueSet_test.h.
void WValueSetTest::testSubArrayInstantiation | ( | ) | [inline] |
A subarray should never exceed the valuesets boundaries and should not have a length of 0.
Definition at line 152 of file WValueSet_test.h.