-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add positive and negative tests for negative fees
In particular, this commit adds a new arbitrary implementation for `PrimitiveWitness`; this one takes the transaction fee as argument. This transaction fee can be negative and even (as far as the arbitrary implementation is concerned) invalid. The tests do not pass yet. Future changes to `NativeCurrency` and `SingleProof` that accomodate negative fees will fix these failures. The tests are there for test-driven development.
- Loading branch information
1 parent
6f2ba0a
commit 4dbb0f4
Showing
3 changed files
with
150 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
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