Branch: Tag:

2003-02-11

2003-02-11 15:59:58 by Johan Sundström <oyasumi@gmail.com>

Somewhat kludgy fix to make the Calendar format functions report the correct start date for certain boundary case weeks.

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.7
Rev: lib/modules/Calendar.pmod/YMD.pmod:1.49
Rev: lib/modules/Calendar.pmod/testsuite.in:1.6

1: - dnl $Id: testsuite.in,v 1.5 2002/12/11 22:57:24 nilsson Exp $ + dnl $Id: testsuite.in,v 1.6 2003/02/11 15:59:58 jhs Exp $      dnl NOTE:   dnl *every* time the Calendar tests have failed, it's not the
102:      test_day("2003-12-31 Wed 2004w01")   test_day("2004-01-01 Thu 2004w01") +  + test_eq([[ Calendar.ISO.Week(2001, 1)->format_ymd() ]], "2001-01-01") + test_eq([[ Calendar.ISO.Week(2002, 1)->format_ymd() ]], "2001-12-31") + test_eq([[ Calendar.ISO.Week(2003, 1)->format_ymd() ]], "2002-12-30") + test_eq([[ Calendar.ISO.Week(2004, 1)->format_ymd() ]], "2003-12-29") + test_eq([[ Calendar.ISO.Week(2005, 1)->format_ymd() ]], "2005-01-03")