public void testToString(){
  DoubleAccumulator ai=new DoubleAccumulator(null,0.0);
  assertEquals("0.0",ai.toString());
  ai.accumulate(1.0);
  assertEquals(Double.toString(1.0),ai.toString());
}

public void testToString ( ) { DoubleAccumulator ai = new DoubleAccumulator ( null , 0.0 ) ; assertEquals ( "0.0" , ai . toString ( ) ) ; ai . accumulate ( 1.0 ) ; assertEquals ( Double . toString ( 1.0 ) , ai . toString ( ) ) ; }
tostring returns current value .
