OpenWalnut 1.2.5
Public Member Functions

WHistogramBasicTest Class Reference

Unit tests the WHistogramBasic class. More...

#include <WHistogramBasic_test.h>

Inheritance diagram for WHistogramBasicTest:

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 testOperatorToGetNumberOfElementsInsideTheBin (void)
 For each insert this number should increase by one.

Detailed Description

Unit tests the WHistogramBasic class.

Definition at line 37 of file WHistogramBasic_test.h.


Member Function Documentation

void WHistogramBasicTest::setUp ( void  ) [inline]

Setup logger and other stuff for each test.

Definition at line 44 of file WHistogramBasic_test.h.

References WLogger::startup().

void WHistogramBasicTest::testInitialization ( void  ) [inline]

Check when nothing was inserted every thing is empty.

Definition at line 52 of file WHistogramBasic_test.h.

References WHistogram::size(), and WHistogramBasic::valuesSize().

void WHistogramBasicTest::testInsert ( void  ) [inline]

Check normal insertion inside the min max boundaries.

Definition at line 62 of file WHistogramBasic_test.h.

References WHistogramBasic::insert(), WHistogram::size(), and WHistogramBasic::valuesSize().

void WHistogramBasicTest::testInsertMax ( void  ) [inline]

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

Definition at line 99 of file WHistogramBasic_test.h.

References WHistogramBasic::insert().

void WHistogramBasicTest::testInsertMin ( void  ) [inline]

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

Definition at line 88 of file WHistogramBasic_test.h.

References WHistogramBasic::insert().

void WHistogramBasicTest::testInsertOnIntervalBorder ( void  ) [inline]

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

Definition at line 74 of file WHistogramBasic_test.h.

References WHistogramBasic::insert().

void WHistogramBasicTest::testInsertOutOfBounds ( void  ) [inline]

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

Definition at line 111 of file WHistogramBasic_test.h.

References wlimits::DBL_EPS, WHistogramBasic::insert(), and WHistogram::size().

void WHistogramBasicTest::testOperatorToGetNumberOfElementsInsideTheBin ( void  ) [inline]

For each insert this number should increase by one.

Definition at line 125 of file WHistogramBasic_test.h.

References WHistogramBasic::insert(), WHistogram::size(), and WHistogramBasic::valuesSize().


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends