Flowdock
method

assert_in_delta

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Assertions
assert_in_delta(exp, act, delta = 0.001, msg = nil) public

For comparing Floats. Fails unless exp and act are within delta of each other.

assert_in_delta Math::PI, (22.0 / 7.0), 0.01
Show source
Register or log in to add new notes.