April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Floating point assertions
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 )