|
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 TestSupport.Math.compareFloatEqual().
|
protected |
Definition at line 20 of file Math.py.
Referenced by TestSupport.Math.compareFloatEqual(), and TestSupport.Math.compareFloatLessThan().
|
protected |
Definition at line 24 of file Math.py.
Referenced by TestSupport.Math.compareFloatEqual(), and TestSupport.Math.compareFloatLessThan().
|
protected |
Definition at line 28 of file Math.py.
Referenced by TestSupport.Math.compareFloatEqual(), and TestSupport.Math.compareFloatLessThan().
|
protected |
Definition at line 36 of file Math.py.
Referenced by TestSupport.Math.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 TestSupport.Math._areEqual(), TestSupport.Math._areInstancesOfNumber(), TestSupport.Math._areOfTypeListOrTuple(), and TestSupport.Math._haveEqualLength().
| 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 TestSupport.Math._areInstancesOfNumber(), TestSupport.Math._areOfTypeListOrTuple(), TestSupport.Math._haveEqualLength(), and TestSupport.Math._isLessThan().
| TestSupport.Math.compareFloatLessThanOrEqual | ( | a, | |
| b, | |||
| epsilon = 0.0001 ) |