-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Change behavior of ceilDiv(0, 0) and improve test coverage #4348
Conversation
🦋 Changeset detectedLatest commit: 1c02d6b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small comment
'openzeppelin-solidity': minor | ||
--- | ||
|
||
`Math`: Make `ceilDiv` to revert on 0 division even if the numerator is 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its actually a panic. But this is already merge so whatever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the changeset is correct, it reverts with a Panic error.
FYI, I got a question here 2477534#r118328369. |
Description
Addresses last pending comment in #4261 about testing coverage.
I fixed some uncovered branches but is difficult to check for exhaustivity, and also some new added branches are difficult to reach specially because they're errors.