protected void assertEquals(float expected,float actual){
  if (expected != actual) {
    if (Float.isNaN(expected) && Float.isNaN(actual)) {
    }
 else {
      fail("Expected: " + expected + " actual: "+ actual);
    }
  }
}

protected void assertEquals ( float expected , float actual ) { if ( expected != actual ) { if ( Float . isNaN ( expected ) && Float . isNaN ( actual ) ) { } else { fail ( "Expected: " + expected + " actual: " + actual ) ; } } }
check if two values are equal , and if not throw an exception .
