Skip to content

Commit

Permalink
Improve FlexVotingClient test structure (#71)
Browse files Browse the repository at this point in the history
* Add constructor test

* Isolate expressVote tests

* Rename and reorder CastVote tests

* Tests for _rawBalanceOf and _castVoteReasonString

* Add tests to fill out spec

* Spec out getPastRawBalance

* Fix bounds for second amounts

* Rename fuzzing helper function

* Fix block number for checks in getPastRawBalance test

* Use bound instead of assume for uint48s

* Refactor FlexClient assumption helpers, fixes #74

* Clarify reasons for vote bounds throughout tests

* Ensure expressVote reverts for unknown proposals

* More assumption cleanup

* Define a MAX_VOTE_TYPE to simplify code

* Pin foundry to get CI to pass

* forge fmt
  • Loading branch information
davidlaprade authored Nov 20, 2024
1 parent d7b304e commit 893229b
Show file tree
Hide file tree
Showing 3 changed files with 512 additions and 160 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
version: nightly-e649e62f125244a3ef116be25dfdc81a2afbaf2a

- name: Run tests
run: forge test
Expand Down
Loading

0 comments on commit 893229b

Please sign in to comment.