public class TestUnaryMinus {
@Test
public void testUnaryMinus() {
VectorizedRowBatch vrg = VectorizedRowGroupGenUtil.getVectorizedRowBatch(1024, 2, 23);
LongColUnaryMinus expr = new LongColUnaryMinus(0, 1);
expr.evaluate(vrg);
//verify
long[] inVector = ((LongColumnVector) vrg.cols[0]).vector;
long[] outVector = ((LongColumnVector) vrg.cols[1]).vector;
for (int i = 0; i < outVector.length; i++) {
assertEquals(0, inVector[i]+outVector[i]);