public class TestMathUDF extends TestCase{
public double delta = 0.001;
public void testABS() throws Exception {
EvalFunc<DataAtom> ABS = new ABS();
Tuple tup = new Tuple(1);
tup.setField(0, -1.0);
DataAtom output = new DataAtom();
ABS.exec(tup, output);
double expected = 1.0;
double actual = (new Double(output.strval())).doubleValue();
assertEquals(actual, expected, delta);
}