Example #1
0
 public void testMinus7() throws XPathException {
   DateValue d1 = new DateValue("2005-10-10"), d2 = new DateValue("2005-10-09");
   DayTimeDurationValue r = (DayTimeDurationValue) d1.minus(d2);
   assertEquals((double) 1 * 24 * 60 * 60, r.getValue(), 0);
   assertEquals(1, r.getPart(DurationValue.DAY));
 }