Skip to content

Add Unit Test: Withdraw Zero and Withdraw Excess Balance #26

@greatest0fallt1me

Description

@greatest0fallt1me

Description
Add tests for withdraw: (1) withdraw(0) panics or returns without effect per spec; (2) withdraw(amount) when amount > balance panics.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Depends on Issue 25 (withdraw) being implemented

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b test/withdraw-edge-cases
  • Implement changes
    • Test withdraw(0) behavior; test withdraw(balance + 1) panics
  • Test and commit
    • Run tests; include test output
  • Example commit message: test: withdraw zero and excess balance edge cases

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours
  • Project details: #

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions