Skip to content

Add comprehensive majority threshold boundary tests#361

Merged
hman38705 merged 2 commits intosolutions-plug:mainfrom
techisigu:feature/majority-threshold-boundary-tests
Mar 28, 2026
Merged

Add comprehensive majority threshold boundary tests#361
hman38705 merged 2 commits intosolutions-plug:mainfrom
techisigu:feature/majority-threshold-boundary-tests

Conversation

@techisigu
Copy link
Copy Markdown
Contributor

closes #276

  • Add table-driven tests for exact 6000 bps (60%) threshold validation
  • Test boundary cases: 59.99%, 60.00%, 60.01% with precise assertions
  • Add precision tests with large numbers to validate calculation accuracy
  • Ensure NoMajorityReached error for failing cases
  • Covers edge cases including ties and overwhelming majorities

Fixes testing gap for majority threshold boundary behavior in resolution module

afurious and others added 2 commits March 28, 2026 13:00
- Add table-driven tests for exact 6000 bps (60%) threshold validation
- Test boundary cases: 59.99%, 60.00%, 60.01% with precise assertions
- Add precision tests with large numbers to validate calculation accuracy
- Ensure NoMajorityReached error for failing cases
- Covers edge cases including ties and overwhelming majorities

Fixes testing gap for majority threshold boundary behavior in resolution module
@hman38705 hman38705 merged commit 9aebbfd into solutions-plug:main Mar 28, 2026
1 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test fetch_events_since error masking behavior

3 participants