method

assert_in_epsilon

ruby latest stable - Class: MiniTest::Assertions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

assert_in_epsilon(a, b, epsilon = 0.001, msg = nil)
public

For comparing Floats. Fails unless exp and act have a relative error less than epsilon.