5c365303

ical-recurrence: test that a weekly BySetPos does not depend on the limit

The limit is an implementation detail of this library, not part of the
recurrence rule, so it must only cut off results.  It must not change
which instance BYSETPOS selects.

weeklyDateTimeRecurrence has its 'd <= limit' guard inside the list
that filterSetPos numbers, so in the week that straddles the limit the
candidate set is truncated and BYSETPOS picks from the truncated set.
monthlyDateTimeRecurrence and yearlyDateTimeRecurrence have the same
problem; dailyDateTimeRecurrence does not, because there filterSetPos
only ever spans the times within one day.

The last week day of the week of the 20th of January 2020 is Friday the
24th, which lies beyond a limit of the 22nd, so the recurrence set up to
that limit contains no instance in that week at all.

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 58s 1s 1s 1m00s 58s
Eval 2m58s 11s 11s 3m09s 1m58s
Build 3m09s 2m39s - - 14m15s
Suite 58s 2m53s - - 32m57s

Timeline

0s1m3m17m10s17m20s17m30s17m40s17m50s