Skip to content

Commit 893229b

Browse files
authored
Improve FlexVotingClient test structure (#71)
* 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
1 parent d7b304e commit 893229b

File tree

3 files changed

+512
-160
lines changed

3 files changed

+512
-160
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install Foundry
3636
uses: foundry-rs/foundry-toolchain@v1
3737
with:
38-
version: nightly
38+
version: nightly-e649e62f125244a3ef116be25dfdc81a2afbaf2a
3939

4040
- name: Run tests
4141
run: forge test

0 commit comments

Comments
 (0)