Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: assert >= 14 on num days not given day #4986

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

iyzana
Copy link
Contributor

@iyzana iyzana commented Jun 1, 2024

The assert was probably meant to ensure the complete year has at least 14 days, and not that the given day is at least the 14th day of the year

Fixes: #4977

@sffc
Copy link
Member

sffc commented Jun 4, 2024

Thanks for the fix!

Looks like the assertion was added in 3e7da41

We should make a patch release for this.

CC @robertbastian

@robertbastian robertbastian merged commit e83fd9b into unicode-org:main Jun 4, 2024
28 checks passed
@sffc sffc mentioned this pull request Jun 4, 2024
sffc pushed a commit that referenced this pull request Jun 6, 2024
The assert was probably meant to ensure the complete year has at least
14 days, and not that the given day is at least the 14th day of the year

Fixes: #4977
(cherry picked from commit e83fd9b)
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.

Failing debug_assert when formatting week_of_year
3 participants