Skip to content

Fix nth weekday matches on day 31 - #70

Open
bensynapse wants to merge 1 commit into
datasert:masterfrom
bensynapse:fix-nth-weekday-day31
Open

bensynapse wants to merge 1 commit into
datasert:masterfrom
bensynapse:fix-nth-weekday-day31

Conversation

@bensynapse

Copy link
Copy Markdown

I run Live Tennis API.

0 0 ? * fri#5 skips July 31, 2020, even though it is the fifth Friday of that month.
getDaysOfType stops before day 31. It now enumerates the month's actual number of days.

The new cases cover isTimeMatches and getFutureMatches for all seven weekdays on day 31.
They also check all fifth Fridays in 2020 and a month with only four Fridays.
Fifteen of the new cases fail before the fix.

yarn check-packages passes all 142 tests, compilation and lint on Node 22.23.2.
yarn ci:format passes too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant