3 Commits

Author SHA1 Message Date
Lukas Fleischer
06ce86c600 test: indent continuation lines
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2020-10-12 11:16:08 -04:00
Lars Henriksen
bd238bfd7c Fix recurrence rule expansion with ordered weekday
When the order of a weekday in BYDAY rule expansion (like -5SA or 5SU
for monthly or 55WE for yearly) exceeds the number of available weekdays
in the period (month or year), rule expansion with negative order could
result in a floating point exception. The reason: the modified frequency
might become zero.

Solution. Check order against number of available weekdays and terminate
expansion early whenever possible (also for positive orders).

Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2020-05-12 09:24:11 -04:00
Lars Henriksen
eda28d3fef Tests for recurrence rule extensions
Test cases include all the examples from RFC5545 which are supported.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2020-04-28 07:32:44 -04:00