Skip to content

Add property-based contribution tests#141

Open
Johnyyy1 wants to merge 1 commit into
sorosave-protocol:mainfrom
Johnyyy1:codex/sorosave-property-tests
Open

Add property-based contribution tests#141
Johnyyy1 wants to merge 1 commit into
sorosave-protocol:mainfrom
Johnyyy1:codex/sorosave-property-tests

Conversation

@Johnyyy1
Copy link
Copy Markdown

Summary

  • adds proptest as a dev dependency for the SoroSave contract tests
  • adds randomized contribution-cycle coverage for 2-20 members and variable contribution amounts
  • asserts payout order uniqueness, per-round contribution totals, completion status, final member balances, and zero remaining contract balance

Closes #33

Verification

  • git diff --check
  • Not run: cargo test / cargo fmt / cargo clippy because this local environment does not have a Rust toolchain (cargo and rustfmt are unavailable). The repo CI should run the Rust checks on the PR.

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.

Add property-based tests for contribution logic

1 participant