OpenWalnut  1.4.0
Public Member Functions | Private Attributes
WValueTest Class Reference

Testsuite for WValue. More...

#include <WValue_test.h>

+ Inheritance diagram for WValueTest:

List of all members.

Public Member Functions

void setUp (void)
 Called before every test.
void testInstantiation (void)
 Instantiation should throw nothing.
void testSize (void)
 size should give the value we have put into the constructor
void testElementAccessOperator (void)
 Element access operator should return the right values.
void testConstElementAccessOperator (void)
 Const element access operator should return the right values.
void testEqualityOperator (void)
 == operator should return true if the WValues contain the same elements and false if the don't.
void testInEqualityOperator (void)
 != operator should return false if the WValues contain the same elements and false if the don't.
void testAssignmentOperator (void)
 assignment operator= should assign the correct values
void testPlusAssignmentOperator (void)
 plus assignment operator-= should assign the correct values
void testMinusAssignmentOperator (void)
 minus assignment operator-= should assign the correct values
void testProductWithScalarAssignmentOperator (void)
 product with scalar assignment operator*= should assign the correct values
void testComponentWiseProductAssignmentOperator (void)
 componentwise product assignment operator*= should assign the correct values
void testPlusOperator (void)
 plus operator+
void testMinusOperator (void)
 minus operator+-
void testComponentWiseProductOperator (void)
 componentwise multiplication operator*
void testNormDouble (void)
 norm with doubles
void testNormInt (void)
 norm int
void testNormSquare (void)
 normsquare
void testNormalize (void)
 test normalization of the current WValue
void testNormalized (void)
 test returning normalized version
void testScalingLeftHandSide (void)
 scaling operator, scalar left hand side
void testScalingRightHandSide (void)
 scaling operator, scalar right hand side
void testScalingCommutativity (void)
 ensure scaling operator commutativity
void testOutputStreamOperator (void)
 Every WValue should have an operator<< for writing to ostreams.
void testMean (void)
 Test the mean calculation.
void testMedian (void)
 Test the median calculation.

Private Attributes

double delta
 Some values are allowed to differ by delta.

Detailed Description

Testsuite for WValue.

Definition at line 38 of file WValue_test.h.


Member Function Documentation

void WValueTest::setUp ( void  ) [inline]

Called before every test.

Definition at line 47 of file WValue_test.h.

References delta.

void WValueTest::testAssignmentOperator ( void  ) [inline]

assignment operator= should assign the correct values

Definition at line 152 of file WValue_test.h.

componentwise product assignment operator*= should assign the correct values

Definition at line 320 of file WValue_test.h.

References delta.

componentwise multiplication operator*

Definition at line 439 of file WValue_test.h.

References delta.

Const element access operator should return the right values.

Definition at line 90 of file WValue_test.h.

void WValueTest::testElementAccessOperator ( void  ) [inline]

Element access operator should return the right values.

Definition at line 74 of file WValue_test.h.

void WValueTest::testEqualityOperator ( void  ) [inline]

== operator should return true if the WValues contain the same elements and false if the don't.

Definition at line 102 of file WValue_test.h.

void WValueTest::testInEqualityOperator ( void  ) [inline]

!= operator should return false if the WValues contain the same elements and false if the don't.

Definition at line 127 of file WValue_test.h.

void WValueTest::testInstantiation ( void  ) [inline]

Instantiation should throw nothing.

Definition at line 55 of file WValue_test.h.

void WValueTest::testMean ( void  ) [inline]

Test the mean calculation.

Definition at line 649 of file WValue_test.h.

References WValue< T >::mean().

void WValueTest::testMedian ( void  ) [inline]

Test the median calculation.

Definition at line 661 of file WValue_test.h.

References WValue< T >::mean().

void WValueTest::testMinusAssignmentOperator ( void  ) [inline]

minus assignment operator-= should assign the correct values

Definition at line 234 of file WValue_test.h.

References delta.

void WValueTest::testMinusOperator ( void  ) [inline]

minus operator+-

Definition at line 404 of file WValue_test.h.

References delta.

void WValueTest::testNormalize ( void  ) [inline]

test normalization of the current WValue

Definition at line 520 of file WValue_test.h.

References delta, WValue< T >::norm(), and WValue< T >::normalize().

void WValueTest::testNormalized ( void  ) [inline]

test returning normalized version

Definition at line 538 of file WValue_test.h.

References delta, WValue< T >::norm(), and WValue< T >::normalized().

void WValueTest::testNormDouble ( void  ) [inline]

norm with doubles

Definition at line 475 of file WValue_test.h.

References WValue< T >::norm().

void WValueTest::testNormInt ( void  ) [inline]

norm int

Definition at line 490 of file WValue_test.h.

References WValue< T >::norm().

void WValueTest::testNormSquare ( void  ) [inline]

normsquare

Definition at line 505 of file WValue_test.h.

References delta, and WValue< T >::normSquare().

void WValueTest::testOutputStreamOperator ( void  ) [inline]

Every WValue should have an operator<< for writing to ostreams.

Definition at line 635 of file WValue_test.h.

void WValueTest::testPlusAssignmentOperator ( void  ) [inline]

plus assignment operator-= should assign the correct values

Definition at line 192 of file WValue_test.h.

References delta.

void WValueTest::testPlusOperator ( void  ) [inline]

plus operator+

Definition at line 369 of file WValue_test.h.

References delta.

product with scalar assignment operator*= should assign the correct values

Definition at line 279 of file WValue_test.h.

References delta.

void WValueTest::testScalingCommutativity ( void  ) [inline]

ensure scaling operator commutativity

Definition at line 611 of file WValue_test.h.

void WValueTest::testScalingLeftHandSide ( void  ) [inline]

scaling operator, scalar left hand side

Definition at line 563 of file WValue_test.h.

References delta.

void WValueTest::testScalingRightHandSide ( void  ) [inline]

scaling operator, scalar right hand side

Definition at line 587 of file WValue_test.h.

References delta.

void WValueTest::testSize ( void  ) [inline]

size should give the value we have put into the constructor

Definition at line 64 of file WValue_test.h.

References WValue< T >::size().


Member Data Documentation

double WValueTest::delta [private]

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