openzeppelin-contracts icon indicating copy to clipboard operation
openzeppelin-contracts copied to clipboard

Write invariant testing for Heap.sol

Open Amxx opened this issue 1 year ago • 1 comments

          I tried testing these invariants with [Foundry Invariant Testing](https://book.getfoundry.sh/forge/invariant-testing) without success. The reason is that we need a mock to deploy within the setup function so that it acts as the target contract to validate the invariant against.

I don't think that's needed but we may want to reconsider invariant tests

Originally posted by @ernestognw in https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5084#discussion_r1687475372

Amxx avatar Jul 23 '24 07:07 Amxx

Ref: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5084#discussion_r1687475978

Amxx avatar Jul 23 '24 07:07 Amxx