static public void assertEquals(String message,double expected,double actual,double delta){
  if (Double.isInfinite(expected)) {
    if (!(expected == actual))     failNotEquals(message,new Double(expected),new Double(actual));
  }
 else   if (!(Math.abs(expected - actual) <= delta))   failNotEquals(message,new Double(expected),new Double(actual));
}

static public void assertEquals ( String message , double expected , double actual , double delta ) { if ( Double . isInfinite ( expected ) ) { if ( ! ( expected == actual ) ) failNotEquals ( message , new Double ( expected ) , new Double ( actual ) ) ; } else if ( ! ( Math . abs ( expected - actual ) <= delta ) ) failNotEquals ( message , new Double ( expected ) , new Double ( actual ) ) ; }
asserts that two doubles are equal concerning a delta . if they are not an assertionfailederror is thrown with the given message . if the expected value is infinity then the delta value is ignored .
