42130b52

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

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 20s 1s 1s 21s 20s
Eval 4m07s 12s 12s 4m20s 3m45s
Build 1h43m11s 2m05s - - 1h38m51s
Suite 20s 2m19s - - 2h35m45s

Timeline

0s4m10s4m20s1h43m1h43m1h43m1h43m1h44m1h44m