[erlang-questions] how: best way to deal with floats in eunit?

Tim Fletcher twoggle@REDACTED
Tue Aug 12 16:57:23 CEST 2008

> That's exactly how it's done in a few other unittesting frameworks.
> Here is the one from Twisted's Trial (http://twistedmatrix.com/), for
> instance:

Similarly in Ruby:

  assert_in_delta(expected_float, actual_float, delta)  (Test::Unit)

  actual_float.should be_close(expected_float, delta)  (RSpec)

More information about the erlang-questions mailing list