-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add property test for
ErrBalanceTxUnableToCreateInput
. (#4385)
## Issue Follow-on from #4379 ## Description This PR adds a test for the `ErrBalanceTxUnableToCreateInput` failure condition. In addition, this PR also: - adds a `BalanceTxArgs` record type to hold arguments for the `balanceTx` function. - adds a pair of combinators for `BalanceTxArgs`: - `Success` for arguments that will always produce a balanced transaction. - `SuccessOrFailure` for arguments that will sometimes produce a balanced transaction but sometimes result in failure. - uses these combinators to simplify the arguments for `balanceTx` properties.
- Loading branch information
Showing
1 changed file
with
178 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters