Skip to content

test: add property-based tests for drip contract invariants#96

Merged
JerryIdoko merged 1 commit intoGrant-Stream:mainfrom
lishmanTech:ProperBaseTest
Feb 26, 2026
Merged

test: add property-based tests for drip contract invariants#96
JerryIdoko merged 1 commit intoGrant-Stream:mainfrom
lishmanTech:ProperBaseTest

Conversation

@lishmanTech
Copy link
Contributor

  • Uses proptest to generate random sequences of pause, resume, withdraw, and change_rate actions
  • Asserts invariant: total withdrawn + remaining balance == initial deposit
  • Ensures accrued balance remains flat during paused periods
  • Helps prevent logic errors across complex pause/resume/rate-change cycles

closes #87

@JerryIdoko JerryIdoko merged commit 62bc811 into Grant-Stream:main Feb 26, 2026
1 check failed
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.

#54 Issue 54: [Testing] Formal Verification of Pause/Resume Time Math

2 participants