OpenWalnut  1.4.0
Public Member Functions
WHistogram2DTest Class Reference

Unit tests the WHistogramBasic class. More...

#include <WHistogram2D_test.h>

+ Inheritance diagram for WHistogram2DTest:

List of all members.

Public Member Functions

void setUp ()
 Setup logger and other stuff for each test.
void testInitialization (void)
 Check when nothing was inserted every thing is empty.
void testInsert (void)
 Check normal insertion inside the min max boundaries.
void testInsertOnIntervalBorder (void)
 If the value is directly on the borderline it counts to the right interval.
void testInsertMin (void)
 If the minimum is inserted the first bin should be incremented.
void testInsertMax (void)
 If the maximum is inserted the right most interval is used.
void testInsertOutOfBounds (void)
 If above the maximum values are inserted a warning should be printed and nothing should happen.
void testInsertAlmostMax (void)
 Also for values near the maxium.

Detailed Description

Unit tests the WHistogramBasic class.

Definition at line 37 of file WHistogram2D_test.h.


Member Function Documentation

void WHistogram2DTest::setUp ( void  ) [inline]

Setup logger and other stuff for each test.

Definition at line 43 of file WHistogram2D_test.h.

References WLogger::startup().

void WHistogram2DTest::testInitialization ( void  ) [inline]

Check when nothing was inserted every thing is empty.

Definition at line 51 of file WHistogram2D_test.h.

References WHistogramND< N, T >::size().

void WHistogram2DTest::testInsert ( void  ) [inline]

Check normal insertion inside the min max boundaries.

Definition at line 60 of file WHistogram2D_test.h.

References WHistogram2D::insert(), and WHistogramND< N, T >::size().

void WHistogram2DTest::testInsertAlmostMax ( void  ) [inline]

Also for values near the maxium.

You may also see #186 for further details.

Definition at line 151 of file WHistogram2D_test.h.

References wlimits::FLT_EPS, and WHistogram2D::insert().

void WHistogram2DTest::testInsertMax ( void  ) [inline]

If the maximum is inserted the right most interval is used.

Definition at line 121 of file WHistogram2D_test.h.

References WHistogram2D::insert().

void WHistogram2DTest::testInsertMin ( void  ) [inline]

If the minimum is inserted the first bin should be incremented.

Definition at line 108 of file WHistogram2D_test.h.

References WHistogram2D::insert().

If the value is directly on the borderline it counts to the right interval.

Definition at line 92 of file WHistogram2D_test.h.

References WHistogram2D::insert().

void WHistogram2DTest::testInsertOutOfBounds ( void  ) [inline]

If above the maximum values are inserted a warning should be printed and nothing should happen.

Definition at line 134 of file WHistogram2D_test.h.

References wlimits::DBL_EPS, and WHistogram2D::insert().


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