30d01948

ical-recurrence: test that a monthly 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.

monthlyDateTimeRecurrence has its 'd <= limit' guard inside the list
that filterSetPos numbers, so in the month that straddles the limit the
candidate set is truncated and BYSETPOS picks from the truncated set.
weeklyDateTimeRecurrence 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 February 2020 is the 28th, which lies beyond a
limit of the 20th, so the recurrence set up to that limit contains no
instance in February at all.

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 40s 1s 1s 42s 40s
Eval 2m43s 10s 10s 2m53s 2m01s
Build 1h49m24s 1m51s - - 1h46m58s
Suite 40s 2m02s - - 2h34m25s

Timeline

0s2m50s1h49m1h49m1h49m1h50m1h50m1h50m