// test double->double version
VectorizedRowBatch b = getVectorizedRowBatchDoubleInDoubleOut();
DoubleColumnVector resultV = (DoubleColumnVector) b.cols[1];
b.cols[0].noNulls = true;
VectorExpression expr = new FuncSignDoubleToDouble(0, 1);
expr.evaluate(b);
Assert.assertEquals(-1.0d, resultV.vector[0]);
Assert.assertEquals(1.0d, resultV.vector[4]);
// test long->double version
b = getVectorizedRowBatchLongInDoubleOut();
resultV = (DoubleColumnVector) b.cols[1];
b.cols[0].noNulls = true;
expr = new FuncSignLongToDouble(0, 1);
expr.evaluate(b);
Assert.assertEquals(-1.0d, resultV.vector[0]);
Assert.assertEquals(1.0d, resultV.vector[4]);
}