You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VoteTally now includes abstain_votes but no test explicitly verifies this field is populated correctly after abstain votes are cast. The existing tally tests likely pre-date the abstain feature.
Tasks
Create a proposal
Cast 60 For votes, 30 Against votes, 10 Abstain votes (from different voters)
Call get_vote_tally() and assert:
yes_votes == 60
no_votes == 30
abstain_votes == 10
total_votes == 100
Verify get_vote_tally() on a proposal with no votes returns all zeros
Verify get_vote_tally() on a non-existent proposal returns ProposalNotFound
Summary
VoteTallynow includesabstain_votesbut no test explicitly verifies this field is populated correctly after abstain votes are cast. The existing tally tests likely pre-date the abstain feature.Tasks
Forvotes, 30Againstvotes, 10Abstainvotes (from different voters)get_vote_tally()and assert:yes_votes == 60no_votes == 30abstain_votes == 10total_votes == 100get_vote_tally()on a proposal with no votes returns all zerosget_vote_tally()on a non-existent proposal returnsProposalNotFoundLabels:
testing,forge-governor