Safe Haskell | None |
---|
Wheat - Penny ledger tests
Wheat helps you build tests to check all the postings in your ledger. Perhaps you want to make sure all the account names are valid, or that your checking account has no unreconciled transactions. With Wheat you can easily build a command line program that will check all the postings in a ledger for you against criteria that you specify.
Configuration
Record holding all data to configure Wheat.
WheatConf | |
|
Tests
eachPostingMustBeTrue :: Name -> Pdct Posting -> Test PostingSource
Passes only if each posting is True.
:: Int | The number of postings that must be true for the test to pass |
-> Name | |
-> Pdct Posting | |
-> Test Posting |
Passes if at least a particular number of postings is True.
Convenience functions
futureFirstsOfTheMonth :: Day -> [Day]Source
A non-terminating list of starting with the first day of the first month following the given day, followed by successive first days of the month.
Running tests
Runs Wheat tests. Prints the result to standard output. Exits unsuccessfully if the user gave bad command line options or if at least a single test failed; exits successfully if all tests succeeded. Shows the version number and exits successfully if that was requested.