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
Context
- Target file:
contracts/split/src/validation.rs
Description
The existing tests in
contracts/split/src/validation.rscover 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
two_identical_addresses_returns_duplicate_errorVec<Address>with two copies of the same addressassert_unique_recipientsreturnsErr(ContractError::DuplicateRecipient)cargo testpassesContext
contracts/split/src/validation.rs