double actual = (new Double(output.strval())).doubleValue();
assertEquals(actual, expected, delta);
}
public void testSQRT() throws Exception{
EvalFunc<DataAtom> SQRT = new SQRT();
Tuple tup = new Tuple(1);
tup.setField(0, 0.5);
DataAtom output = new DataAtom();
SQRT.exec(tup, output);
double expected = Math.sqrt(0.5);
double actual = (new Double(output.strval())).doubleValue();
assertEquals(actual, expected, delta);
}