nWhen
comparing floating point types (double or float), there is an additional required parameter delta.
nThe assertion evaluates
n Math.abs( expected – actual )
<= delta
n to avoid problems with round-off errors with floating point comparisons.
nExample:
nassertEquals(
aDouble, anotherDouble, 0.0001 )
n
n
n