862c2861

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 37s 1s 1s 38s 37s
Eval 2m57s 11s 11s 3m08s 2m18s
Build 1h53m02s 1m50s - - 1h50m28s
Suite 37s 2m03s - - 2h34m23s

Timeline

0s3m1h53m1h53m1h53m1h53m1h53m1h54m