Skip to content

Bug fixes to address test failures + removing unused API #162

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

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

nekevss
Copy link
Member

@nekevss nekevss commented Jan 14, 2025

This PR fixes both an assertion bug from caused by IncrementRounder's as_positive path. Since this was the only use case in the specification that seemed to be using the "as_positive" path, I completely removed the methods.

This also fixes some other bugs caused from using non_euclidean operations in IsoDateTime::from_epoch_nanos

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice bug fixing! I like the new name for from_potentially_negative_parts. from_signed_num is short and simple.

@jedel1043 jedel1043 merged commit 53fc1fc into main Jan 15, 2025
6 checks passed
@jedel1043 jedel1043 deleted the fix-assertion-bug branch January 15, 2025 02:54
@jedel1043 jedel1043 added C-bug Something isn't working C-api Changes related to the public API labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-api Changes related to the public API C-bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants