@Test
public void testCastTimestampToDouble() {
VectorizedRowBatch b = TestVectorMathFunctions.getVectorizedRowBatchLongInDoubleOut();
LongColumnVector inV = (LongColumnVector) b.cols[0];
DoubleColumnVector resultV = (DoubleColumnVector) b.cols[1];
b.cols[0].noNulls = true;
VectorExpression expr = new CastTimestampToDoubleViaLongToDouble(0, 1);
expr.evaluate(b);
Assert.assertEquals(-1E-9D , resultV.vector[1]);
Assert.assertEquals(1E-9D, resultV.vector[3]);