Skip to content

Add Unit Test: Deposit Returns New Balance #20

@greatest0fallt1me

Description

@greatest0fallt1me

Description
Add a test that asserts the return value of deposit(amount) equals the new balance (previous + amount).

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Covers return value correctness

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b test/deposit-return-value
  • Implement changes
    • init with 100; assert client.deposit(&50) == 150; assert client.balance() == 150
  • Test and commit
    • Run tests; include test output
  • Example commit message: test: deposit returns new balance

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