Description
Cover exact minimum wager, exact maximum wager, zero reserves, and fee boundary values with focused unit tests.
Motivation
Tests are the primary safety net for the Tossd contract. Without coverage for this area, regressions can go undetected and break game fairness or fund safety guarantees.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Primary files:
Tossd-contract/src/lib.rs
Proposed Solution
Complete the following in a focused PR off feature/unit-edge-cases:
- Write focused unit tests for spec boundaries
- Keep tests isolated and readable
- Document what each edge case protects
Technical Implementation
Files to modify:
coinflip-contract/src/lib.rs
Implementation steps:
- Write focused unit tests for spec boundaries
- Keep tests isolated and readable
- Document what each edge case protects
Branch: feature/unit-edge-cases
Example commit message
test: add unit coverage for wager reserve and fee edges
Acceptance Criteria
Guidelines
- Assignment required before starting
- PR description must include:
Closes #155
Description
Cover exact minimum wager, exact maximum wager, zero reserves, and fee boundary values with focused unit tests.
Motivation
Tests are the primary safety net for the Tossd contract. Without coverage for this area, regressions can go undetected and break game fairness or fund safety guarantees.
Requirements and context
Tossd-contract/src/lib.rsProposed Solution
Complete the following in a focused PR off
feature/unit-edge-cases:Technical Implementation
Files to modify:
coinflip-contract/src/lib.rsImplementation steps:
Branch:
feature/unit-edge-casesExample commit message
Acceptance Criteria
Guidelines
Closes #155