Skip to content

Commit

Permalink
Test function selectionHasValidSurplus.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Sep 15, 2021
1 parent 0d37b6f commit 76419da
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -69,6 +69,7 @@ import Cardano.Wallet.Primitive.CoinSelection.Balance
, runSelectionNonEmptyWith
, runSelectionStep
, selectionDeltaAllAssets
, selectionHasValidSurplus
, splitBundleIfAssetCountExcessive
, splitBundlesWithExcessiveAssetCounts
, splitBundlesWithExcessiveTokenQuantities
Expand Down Expand Up @@ -902,6 +903,9 @@ prop_performSelection minCoinValueFor costFor (Blind criteria) coverage =
assertOnSuccess
"view #tokens surplus == TokenMap.empty"
(view #tokens surplus == TokenMap.empty)
assertOnSuccess
"selectionHasValidSurplus result"
(selectionHasValidSurplus result)
assertOnSuccess
"TokenBundle.getCoin surplus >= minExpectedCoinSurplus"
(TokenBundle.getCoin surplus >= minExpectedCoinSurplus)
Expand Down

0 comments on commit 76419da

Please sign in to comment.