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