private void testDates(double date, int day, int month, int year, int hour,
int minute, int second, int weekday) throws ExprException {
assertEquals("testing " + date, eval(new DAY(), date), (double) day);
assertEquals("testing " + date, eval(new MONTH(), date), (double) month);
assertEquals("testing " + date, eval(new YEAR(), date), (double) year);
assertEquals("testing " + date, eval(new HOUR(), date), (double) hour);
assertEquals("testing " + date, eval(new MINUTE(), date),
(double) minute);
assertEquals("testing " + date, eval(new SECOND(), date),
(double) second);
assertEquals("testing " + date, eval(new WEEKDAY(), date),