Skip to content

Add SignedWadMath coverage for wadExp, wadLn, and wadPow#437

Open
timeless-hayoka wants to merge 3 commits into
transmissions11:mainfrom
timeless-hayoka:anchor/solmate-signed-wad-math-tests
Open

Add SignedWadMath coverage for wadExp, wadLn, and wadPow#437
timeless-hayoka wants to merge 3 commits into
transmissions11:mainfrom
timeless-hayoka:anchor/solmate-signed-wad-math-tests

Conversation

@timeless-hayoka

@timeless-hayoka timeless-hayoka commented Jun 23, 2026

Copy link
Copy Markdown

Summary

Adds direct test coverage for wadExp, wadLn, and wadPow in SignedWadMath.

This is a test-only PR intended to address #388. It does not change runtime or library behavior.

Details

  • Adds coverage for wadExp
  • Adds boundary and revert checks for wadExp
  • Adds coverage for wadLn(1e18) and wadLn(2e18)
  • Adds coverage for wadPow
  • Updates older testFail* revert tests to explicit hevm.expectRevert(...)

Verification

forge test --match-path src/test/SignedWadMath.t.sol

Result:

13 passed, 0 failed

Notes

This PR intentionally avoids behavior changes and avoids overlapping with #405. It is focused only on improving coverage.

@timeless-hayoka timeless-hayoka marked this pull request as ready for review June 23, 2026 04:47
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.

1 participant