4243444546474849505152
Tuple t4 = TupleFactory.getInstance().newTuple(2); t4.set(0, "20090608"); t4.set(1, null); DiffDate func = new DiffDate(); Integer r = func.exec(t1); assertTrue(r==-23); r = func.exec(t2); assertTrue(r==426);
4546474849505152535455
DiffDate func = new DiffDate(); Integer r = func.exec(t1); assertTrue(r==-23); r = func.exec(t2); assertTrue(r==426); r = func.exec(t3); assertTrue(r==null);
4849505152535455565758
assertTrue(r==-23); r = func.exec(t2); assertTrue(r==426); r = func.exec(t3); assertTrue(r==null); r = func.exec(t4); assertTrue(r==null); }
515253545556575859
assertTrue(r==426); r = func.exec(t3); assertTrue(r==null); r = func.exec(t4); assertTrue(r==null); } }