Branch: Tag:

2004-01-10

2004-01-10 22:52:29 by Dan Nelson <dnelson@emsphone.com>

Fixed test. Thanks to Dan Nelson

Rev: lib/modules/Calendar.pmod/testsuite.in:1.11

1: - dnl $Id: testsuite.in,v 1.10 2003/12/31 00:02:12 nilsson Exp $ + dnl $Id: testsuite.in,v 1.11 2004/01/10 22:52:29 nilsson Exp $      dnl NOTE:   dnl *every* time the Calendar tests have failed, it's not the
25:   test_do(Calendar.TimeRange t = Calendar.now())      dnl Some more or less odd timezones encountered by Xenofarm: - test_do(Calendar.ISO.set_timezone("CET")) +    define(test_dwim,[[ -  test_eq(Calendar.ISO.dwim_time($1)->format_time(),"2002-11-19 07:04:03") -  test_eq(Calendar.ISO.dwim_time($1)->tzname(),$2) +  test_eq(Calendar.ISO.set_timezone("CET")->dwim_time($1)->format_time(),"2002-11-19 07:04:03") +  test_eq(Calendar.ISO.set_timezone("CET")->dwim_time($1)->tzname(),$2)   ]])   test_dwim("Tue Nov 19 07:04:03 MET 2002","MET")   test_dwim("Tue Nov 19 07:04:03 CST 2002","CST")