Skip to content

Test assert_unique_recipients with exactly two identical addresses returns error #586

Description

@Kingsman-99

Description

The existing tests in contracts/split/src/validation.rs cover a 3-element list with one duplicate. A simpler minimal test with exactly two identical addresses would more directly target the core duplicate-detection logic and makes the test suite easier to read.

Acceptance Criteria

  • Add a test named two_identical_addresses_returns_duplicate_error
  • Build a Vec<Address> with two copies of the same address
  • Assert assert_unique_recipients returns Err(ContractError::DuplicateRecipient)
  • cargo test passes

Context

  • Target file: contracts/split/src/validation.rs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highComplex feature requiring deep knowledge - 200 ptstestingTests — unit, integration, fuzz

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions