Assert.assertEquals

Asserts that two floats are equal to within a positive delta. If they are not, an {@link AssertionError} is thrown. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: <code>assertEquals(Float.NaN, Float.NaN, *)</code> passes

@param expected expected value @param actual the value to check against <code>expected</code> @param delta the maximum delta between <code>expected</code> and <code>actual</code> for which both numbers are still considered equal.

Meta