Skip to content

Exclude out-of-range holidays from workday counts - #725

Open
PHJ2000 wants to merge 1 commit into
jmrozanec:masterfrom
PHJ2000:fix-holiday-range-count
Open

PHJ2000 wants to merge 1 commit into
jmrozanec:masterfrom
PHJ2000:fix-holiday-range-count

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 4, 2026

Copy link
Copy Markdown

Fixes #724

Filter holidays against both inclusive date boundaries before subtracting them from the workday count.

Adds regression tests for holidays before, after, and surrounding the range, plus a check that holidays on the endpoints still count.

On Java 21, mvn verify succeeds: 806 tests reported, 57 skipped, no failures or errors. The three out-of-range regressions fail before the fix.

AI assistance: OpenAI Codex wrote the fix and tests, ran validation, and drafted this description.

Filter holidays against both inclusive date boundaries and add regression
tests for holidays outside and on the endpoints of the requested range.

Generated-by: OpenAI Codex

This branch has not been deployed

No deployments
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.

workdaysCount subtracts holidays outside the requested date range

1 participant