TestCenter Reference
TestSupport.Math Namespace 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.
 

Detailed Description

Basic math functions.

Function Documentation

◆ _areEqual()

TestSupport.Math._areEqual ( a,
b,
epsilon )
protected

Definition at line 29 of file Math.py.

Referenced by TestSupport.Math.compareFloatEqual().

◆ _areInstancesOfNumber()

TestSupport.Math._areInstancesOfNumber ( a,
b )
protected

◆ _areOfTypeListOrTuple()

TestSupport.Math._areOfTypeListOrTuple ( a,
b )
protected

◆ _haveEqualLength()

TestSupport.Math._haveEqualLength ( a,
b )
protected

◆ _isLessThan()

TestSupport.Math._isLessThan ( a,
b )
protected

Definition at line 32 of file Math.py.

Referenced by TestSupport.Math.compareFloatLessThan().

◆ compareFloatEqual()

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.

Returns
True if values match.

Definition at line 42 of file Math.py.

References TestSupport.Math._areEqual(), TestSupport.Math._areInstancesOfNumber(), TestSupport.Math._areOfTypeListOrTuple(), and TestSupport.Math._haveEqualLength().

◆ compareFloatLessThan()

TestSupport.Math.compareFloatLessThan ( a,
b )

Compare the two given float values if the first is less than the second.

Parameters
aThe first value.
bThe second value.
Returns
True if first value is less than the second.

Definition at line 70 of file Math.py.

References TestSupport.Math._areInstancesOfNumber(), TestSupport.Math._areOfTypeListOrTuple(), TestSupport.Math._haveEqualLength(), and TestSupport.Math._isLessThan().

Referenced by TestSupport.Math.compareFloatLessThanOrEqual().

◆ 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.

Parameters
aThe first value.
bThe second value.
epsilonEpsilon used for float comparison.
Returns
True if first value is less than or equal to the second.

Definition at line 99 of file Math.py.

References TestSupport.Math.compareFloatLessThan().