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

UnitTests the WValueSet class. More...

#include <WValueSet_test.h>

+ Inheritance diagram for WValueSetTest:
+ Collaboration diagram for WValueSetTest:

Public Member Functions

void testInstantiation (void)
 An instantiation should never throw an exception. More...
 
void testGetNumberOfValues (void)
 The number of values retrieved is correct. More...
 
void testRawSize (void)
 The raw size is the size of the number of integral elements inside this ValueSet. More...
 
void testGetScalar (void)
 This function should return the i-th value if the value set is scalar. More...
 
void testReadOnlyRawAccess (void)
 Raw Access should provide data access to the underlying array. More...
 
void testGetWValue (void)
 This function should return the i-th WValue with of the used dimension (prerequisite the ValueSet has order 1) More...
 
void testSubArrayInstantiation ()
 A subarray should never exceed the valuesets boundaries and should not have a length of 0. More...
 
void testSubArrayAccess ()
 A subarray should return the correct elements. More...
 

Detailed Description

UnitTests the WValueSet class.

Definition at line 40 of file WValueSet_test.h.

Member Function Documentation

◆ testGetNumberOfValues()

void WValueSetTest::testGetNumberOfValues ( void  )
inline

The number of values retrieved is correct.

Definition at line 58 of file WValueSet_test.h.

◆ testGetScalar()

void WValueSetTest::testGetScalar ( void  )
inline

This function should return the i-th value if the value set is scalar.

Definition at line 91 of file WValueSet_test.h.

◆ testGetWValue()

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 122 of file WValueSet_test.h.

◆ testInstantiation()

void WValueSetTest::testInstantiation ( void  )
inline

An instantiation should never throw an exception.

Definition at line 46 of file WValueSet_test.h.

◆ testRawSize()

void WValueSetTest::testRawSize ( void  )
inline

The raw size is the size of the number of integral elements inside this ValueSet.

Definition at line 76 of file WValueSet_test.h.

◆ testReadOnlyRawAccess()

void WValueSetTest::testReadOnlyRawAccess ( void  )
inline

Raw Access should provide data access to the underlying array.

Definition at line 107 of file WValueSet_test.h.

◆ testSubArrayAccess()

void WValueSetTest::testSubArrayAccess ( )
inline

A subarray should return the correct elements.

Definition at line 170 of file WValueSet_test.h.

◆ testSubArrayInstantiation()

void WValueSetTest::testSubArrayInstantiation ( )
inline

A subarray should never exceed the valuesets boundaries and should not have a length of 0.

Definition at line 153 of file WValueSet_test.h.


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