richcarl/eunit — Issue #6: provide assertEquals for floating point values
Author: justjoheinz
Created: 2011-10-19 07:40:41+00:00
State: open

Not a bug, but a feature request,

in Java there is an assertEquals for floats and doubles which lets you specify an epsilon value, so that imprecisions in calculations can be dealt with.

assetEquals(1.0,0.9999999999, 10e-10) would be true if the difference is <= the epsilon.