a6491305

By: Tom Sydney Kerckhove <syd@cs-syd.eu>

ical-recurrence: test that ByWeekNo 53 does not occur in a 52 week year

byWeekNoExpand bounds negative week numbers by the number of weeks in
the year but passes positive ones through unchecked, and
fromWeekDateWithStart never returns Nothing: it just keeps adding weeks
to the first day of the year.  Nothing then checks that the day it
produced still falls in the year being expanded.

Week 53 of 2019 therefore resolves to the 30th of December 2019, which
is a day in ISO year 2020, and a week number that does not exist in a
year should be ignored for that year like the 30th of February is.

2019 and 2021 have 52 weeks, 2020 has 53.

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 15s 2s 2s 17s 15s
Eval 3m43s 11s 11s 3m55s 3m26s
Build 1h37m32s 2m19s - - 1h34m10s
Suite 15s 2m34s - - 2h58m29s

Timeline

0s3m50s1h37m1h37m1h38m1h38m1h38m1h38m1h38m