Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: improve docs on tests
Browse files Browse the repository at this point in the history
xenide committed Nov 25, 2024

Verified

This commit was signed with the committer’s verified signature.
xenide A.L.
1 parent 91ae3e6 commit 218dfe9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/__fixtures/BaseTest.sol
Original file line number Diff line number Diff line change
@@ -138,16 +138,10 @@ abstract contract BaseTest is Test {
vm.record();
aPair.observation(aIndex);

// TODO: investigate this retarded error
// it's supposed to be 1 access but somehow it's giving 5. To see on foundry github if someone is complaining about this
// already did foundryup
// maybe I need to upgrade the forge-std lib too???

// okay upgraded forge-std too
// no mentions on github
// ask on telegram?

(bytes32[] memory lAccesses,) = vm.accesses(address(aPair));

// for coverage, due to the optimizer being turned off, the accesses will be >1 instead of 1, due to the struct
// members
// solhint-disable-next-line no-console
if (lAccesses.length != 1) console2.log ("warn: invalid number of accesses");

0 comments on commit 218dfe9

Please sign in to comment.