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

divmod: fix aliasing error, add tests #180

Merged
merged 1 commit into from
Jul 25, 2024
Merged

divmod: fix aliasing error, add tests #180

merged 1 commit into from
Jul 25, 2024

Conversation

holiman
Copy link
Owner

@holiman holiman commented Jul 25, 2024

This PR fixes #178, it also adds tests for it. While adding the tests, I found that the proposed fix in #179 was insufficient - we generally need to un-alias z and m too, since they're both used as returnvalues.

Otherwise this PR also contains some go fmt changes.

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (75a5209) to head (1f98c61).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #180   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines         1640      1643    +3     
=========================================
+ Hits          1640      1643    +3     

@holiman holiman merged commit ce90883 into master Jul 25, 2024
6 checks passed
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.

Small problem with DivMod
1 participant