Skip to content

test: assert BadShareTotal error on update_split - #278

Open
dominiccreates wants to merge 5 commits into
tributary-protocol:mainfrom
dominiccreates:feature/one-click-copy
Open

test: assert BadShareTotal error on update_split#278
dominiccreates wants to merge 5 commits into
tributary-protocol:mainfrom
dominiccreates:feature/one-click-copy

Conversation

@dominiccreates

Copy link
Copy Markdown
Contributor

Closes #98 Adds a unit test to verify that the update_split method rejects share distributions that do not sum to exactly 10,000 basis points with a BadShareTotal typed error.

Changes
test.rs
: Added update_split_rejects_shares_not_summing_to_10_000 unit test to assert that try_update_split returns Err(Ok(Error::BadShareTotal)) when updated shares do not sum to TOTAL_SHARES (10,000).
Verification
Ran local test runner verifying all 24 tests pass successfully.
Verified cargo code formatting and clippy lints pass cleanly.
Verified client application and SDK build successfully.

@Spagero763

Copy link
Copy Markdown
Contributor

@dominiccreates kindly resolve conflicts

@Spagero763
Spagero763 enabled auto-merge (squash) July 20, 2026 13:47
auto-merge was automatically disabled July 20, 2026 13:57

Head branch was pushed to by a user without write access

@Spagero763
Spagero763 enabled auto-merge (squash) July 20, 2026 14:18
auto-merge was automatically disabled July 22, 2026 07:30

Head branch was pushed to by a user without write access

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test update_split rejects a bad share total

2 participants