prb-math
prb-math copied to clipboard
Write invariant tests
The recently added assertEqCall might be useful for this:
https://github.com/foundry-rs/forge-std/pull/311
Trail of Bits wrote some invariant tests for PRBMath using Echidna:
https://github.com/crytic/properties/pull/30
Also related: Reusable properties for Ethereum contracts.