961962963964965966967
* @param delta * the given delta. * @return <code>0</code>. */ public static double eq(double value, double delta) { return reportMatcher(new EqualsWithDelta(value, delta)).returnZero(); }
977978979980981982983
* @param delta * the given delta. * @return <code>0</code>. */ public static float eq(float value, float delta) { return reportMatcher(new EqualsWithDelta(value, delta)).returnZero(); }
965966967968969970971
981982983984985986987
33343536373839
Matcher<Number> matcher = equalsWithDelta(expected); assertThat(matcher.matches(actual)).isTrue(); } public Matcher<Number> equalsWithDelta(final Double expected) { return new EqualsWithDelta(expected, .000001); }