|
TestCenter Reference
|
Basic math functions. More...
Functions | |
| _areInstancesOfNumber (a, b) | |
| _areOfTypeListOrTuple (a, b) | |
| _haveEqualLength (a, b) | |
| _areEqual (a, b, epsilon) | |
| _isLessThan (a, b) | |
| compareFloatEqual (a, b, epsilon=0.0001) | |
| Compare the given float values or lists of float values for equality. | |
| compareFloatLessThan (a, b) | |
| Compare the two given float values if the first is less than the second. | |
| compareFloatLessThanOrEqual (a, b, epsilon=0.0001) | |
| Compare the two given float values if the first is less than or equal to the second. | |
Basic math functions.
|
protected |
Definition at line 32 of file Math.py.
Referenced by compareFloatEqual().
|
protected |
Definition at line 20 of file Math.py.
Referenced by compareFloatEqual(), and compareFloatLessThan().
|
protected |
Definition at line 24 of file Math.py.
Referenced by compareFloatEqual(), and compareFloatLessThan().
|
protected |
Definition at line 28 of file Math.py.
Referenced by compareFloatEqual(), and compareFloatLessThan().
|
protected |
Definition at line 36 of file Math.py.
Referenced by compareFloatLessThan().
| TestSupport.Math.compareFloatEqual | ( | a, | |
| b, | |||
| epsilon = 0.0001 ) |
Compare the given float values or lists of float values for equality.
@params a The first float value or list of float values or list of lists. @params a The second float value or list of float values or list of lists. @params epsilon The epsilon value to use.
Definition at line 46 of file Math.py.
References _areEqual(), _areInstancesOfNumber(), _areOfTypeListOrTuple(), _haveEqualLength(), and compareFloatEqual().
Referenced by compareFloatEqual(), and compareFloatLessThanOrEqual().
| TestSupport.Math.compareFloatLessThan | ( | a, | |
| b ) |
Compare the two given float values if the first is less than the second.
| a | The first value. |
| b | The second value. |
Definition at line 76 of file Math.py.
References _areInstancesOfNumber(), _areOfTypeListOrTuple(), _haveEqualLength(), _isLessThan(), and compareFloatLessThan().
Referenced by compareFloatLessThan(), and compareFloatLessThanOrEqual().
| TestSupport.Math.compareFloatLessThanOrEqual | ( | a, | |
| b, | |||
| epsilon = 0.0001 ) |
Compare the two given float values if the first is less than or equal to the second.
| a | The first value. |
| b | The second value. |
| epsilon | Epsilon used for float comparison. |
Definition at line 107 of file Math.py.
References compareFloatEqual(), and compareFloatLessThan().