library loans: edge case
library loans: edge case: a task in smol-software-harbor (Harbor dataset). Due dates that cross February in a leap year come out one day late ( due date((2024, 2, 20)) should be (2024, 3, 12) ). Fix the date arithmetic in loans.py so it follows the Gregorian leap-year rules (divisible by 4, except…
The task
Due dates that cross February in a leap year come out one day late (`due_date((2024, 2, 20))` should be `(2024, 3, 12)`). Fix the date arithmetic in `loans.py` so it follows the Gregorian leap-year rules (divisible by 4, except centuries unless divisible by 400). Run `python3 -m unittest -q tests/test_loans.py`.
Part of efederici/smol-software-harbor.