OpenWalnut
1.5.0dev
|
#include <WValue_test.h>
Public Member Functions | |
void | setUp (void) |
Called before every test. More... | |
void | testInstantiation (void) |
Instantiation should throw nothing. More... | |
void | testSize (void) |
size should give the value we have put into the constructor More... | |
void | testElementAccessOperator (void) |
Element access operator should return the right values. More... | |
void | testConstElementAccessOperator (void) |
Const element access operator should return the right values. More... | |
void | testEqualityOperator (void) |
== operator should return true if the WValues contain the same elements and false if the don't. More... | |
void | testInEqualityOperator (void) |
!= operator should return false if the WValues contain the same elements and false if the don't. More... | |
void | testAssignmentOperator (void) |
assignment operator= should assign the correct values More... | |
void | testPlusAssignmentOperator (void) |
plus assignment operator-= should assign the correct values More... | |
void | testMinusAssignmentOperator (void) |
minus assignment operator-= should assign the correct values More... | |
void | testProductWithScalarAssignmentOperator (void) |
product with scalar assignment operator*= should assign the correct values More... | |
void | testComponentWiseProductAssignmentOperator (void) |
componentwise product assignment operator*= should assign the correct values More... | |
void | testPlusOperator (void) |
plus operator+ More... | |
void | testMinusOperator (void) |
minus operator+- More... | |
void | testComponentWiseProductOperator (void) |
componentwise multiplication operator* More... | |
void | testNormDouble (void) |
norm with doubles More... | |
void | testNormInt (void) |
norm int More... | |
void | testNormSquare (void) |
normsquare More... | |
void | testNormalize (void) |
test normalization of the current WValue More... | |
void | testNormalized (void) |
test returning normalized version More... | |
void | testScalingLeftHandSide (void) |
scaling operator, scalar left hand side More... | |
void | testScalingRightHandSide (void) |
scaling operator, scalar right hand side More... | |
void | testScalingCommutativity (void) |
ensure scaling operator commutativity More... | |
void | testOutputStreamOperator (void) |
Every WValue should have an operator<< for writing to ostreams. More... | |
void | testMean (void) |
Test the mean calculation. More... | |
void | testMedian (void) |
Test the median calculation. More... | |
Private Attributes | |
double | delta |
Some values are allowed to differ by delta. More... | |
Testsuite for WValue.
Definition at line 38 of file WValue_test.h.
|
inline |
|
inline |
assignment operator= should assign the correct values
Definition at line 152 of file WValue_test.h.
|
inline |
componentwise product assignment operator*= should assign the correct values
Definition at line 320 of file WValue_test.h.
References delta.
|
inline |
componentwise multiplication operator*
Definition at line 439 of file WValue_test.h.
References delta.
|
inline |
Const element access operator should return the right values.
Definition at line 90 of file WValue_test.h.
|
inline |
Element access operator should return the right values.
Definition at line 74 of file WValue_test.h.
|
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.
|
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.
|
inline |
Instantiation should throw nothing.
Definition at line 55 of file WValue_test.h.
|
inline |
Test the mean calculation.
Definition at line 649 of file WValue_test.h.
References WValue< T >::mean().
|
inline |
Test the median calculation.
Definition at line 661 of file WValue_test.h.
References WValue< T >::mean().
|
inline |
minus assignment operator-= should assign the correct values
Definition at line 234 of file WValue_test.h.
References delta.
|
inline |
|
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().
|
inline |
test returning normalized version
Definition at line 538 of file WValue_test.h.
References delta, WValue< T >::norm(), and WValue< T >::normalized().
|
inline |
norm with doubles
Definition at line 475 of file WValue_test.h.
References WValue< T >::norm().
|
inline |
norm int
Definition at line 490 of file WValue_test.h.
References WValue< T >::norm().
|
inline |
normsquare
Definition at line 505 of file WValue_test.h.
References delta, and WValue< T >::normSquare().
|
inline |
Every WValue should have an operator<< for writing to ostreams.
Definition at line 635 of file WValue_test.h.
|
inline |
plus assignment operator-= should assign the correct values
Definition at line 192 of file WValue_test.h.
References delta.
|
inline |
|
inline |
product with scalar assignment operator*= should assign the correct values
Definition at line 279 of file WValue_test.h.
References delta.
|
inline |
ensure scaling operator commutativity
Definition at line 611 of file WValue_test.h.
|
inline |
scaling operator, scalar left hand side
Definition at line 563 of file WValue_test.h.
References delta.
|
inline |
scaling operator, scalar right hand side
Definition at line 587 of file WValue_test.h.
References delta.
|
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().
|
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().