|
OpenWalnut 1.3.1
|
#include <WValue_test.h>
Inheritance diagram for WValueTest: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. | |
Testsuite for WValue.
Definition at line 38 of file WValue_test.h.
| void WValueTest::setUp | ( | void | ) | [inline] |
| void WValueTest::testAssignmentOperator | ( | void | ) | [inline] |
assignment operator= should assign the correct values
Definition at line 152 of file WValue_test.h.
| void WValueTest::testComponentWiseProductAssignmentOperator | ( | void | ) | [inline] |
componentwise product assignment operator*= should assign the correct values
Definition at line 320 of file WValue_test.h.
References delta.
| void WValueTest::testComponentWiseProductOperator | ( | void | ) | [inline] |
componentwise multiplication operator*
Definition at line 439 of file WValue_test.h.
References delta.
| void WValueTest::testConstElementAccessOperator | ( | void | ) | [inline] |
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] |
| 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] |
| void WValueTest::testNormInt | ( | void | ) | [inline] |
| 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] |
| void WValueTest::testProductWithScalarAssignmentOperator | ( | void | ) | [inline] |
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().
double WValueTest::delta [private] |
Some values are allowed to differ by delta.
Definition at line 41 of file WValue_test.h.
Referenced by setUp(), testComponentWiseProductAssignmentOperator(), testComponentWiseProductOperator(), testMinusAssignmentOperator(), testMinusOperator(), testNormalize(), testNormalized(), testNormSquare(), testPlusAssignmentOperator(), testPlusOperator(), testProductWithScalarAssignmentOperator(), testScalingLeftHandSide(), and testScalingRightHandSide().
1.7.4