public void testToString(){
  DoubleAdder ai=new DoubleAdder();
  assertEquals(Double.toString(0.0),ai.toString());
  ai.add(1.0);
  assertEquals(Double.toString(1.0),ai.toString());
}

public void testToString ( ) { DoubleAdder ai = new DoubleAdder ( ) ; assertEquals ( Double . toString ( 0.0 ) , ai . toString ( ) ) ; ai . add ( 1.0 ) ; assertEquals ( Double . toString ( 1.0 ) , ai . toString ( ) ) ; }
tostring returns current value .
