@Test void equals() { assertTrue(ConditionalComparator.equalsEpsilon(4.0000001, 3.9999999)); assertFalse(ConditionalComparator.equalsEpsilon(4 + ConditionalComparator.EPSILON, 4 - ConditionalComparator.EPSILON)); }
public static boolean equalsEpsilon(double a, double b) { return a == b ? true : Math.abs(a - b) < EPSILON; }
ConditionalComparator extends AbstractConditional { public static boolean equalsEpsilon(double a, double b) { return a == b ? true : Math.abs(a - b) < EPSILON; } }
ConditionalComparator extends AbstractConditional { public static boolean equalsEpsilon(double a, double b) { return a == b ? true : Math.abs(a - b) < EPSILON; } ConditionalComparator(Matcher matcher, boolean not, int bodyElementNumber, RunsProcessor processor); }
ConditionalComparator extends AbstractConditional { public static boolean equalsEpsilon(double a, double b) { return a == b ? true : Math.abs(a - b) < EPSILON; } ConditionalComparator(Matcher matcher, boolean not, int bodyElementNumber, RunsProcessor processor); double getDoubleValue(); @Override String toString(); static boolean greaterThan(double a, double b); static boolean equalsEpsilon(double a, double b); }
ConditionalComparator extends AbstractConditional { public static boolean equalsEpsilon(double a, double b) { return a == b ? true : Math.abs(a - b) < EPSILON; } ConditionalComparator(Matcher matcher, boolean not, int bodyElementNumber, RunsProcessor processor); double getDoubleValue(); @Override String toString(); static boolean greaterThan(double a, double b); static boolean equalsEpsilon(double a, double b);  }