-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests for the maximum token quantity.
This change adds unit tests for `performSelection` to demonstrate what should happen when inputs are selected whose total quantity of a given asset is close to the maximum token quantity. It should not be possible to produce a `SelectionResult` where one or more change outputs contains a token quantity greater than the maximum (maxBound :: Word64). These unit tests serve as a simple sanity check: the primary testing of the change map partitioning behaviour is handled by the following property tests: - prop_equipartitionCoin_* - prop_equipartitionTokenBundle_* - prop_equipartitionTokenMap_*
- Loading branch information
1 parent
ded55a5
commit b834804
Showing
2 changed files
with
211 additions
and
1 deletion.
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
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