Expand description
Custom assertion macros for testing accounting invariants.
Functions§
- calculate_
imbalance - Calculate the imbalance of a journal entry.
- check_
accounting_ equation - Check that the accounting equation holds: Assets = Liabilities + Equity
- check_
benford_ distribution - Check if amounts follow Benford’s Law distribution. Returns the chi-squared statistic and whether it passes the test at p < 0.05.
- check_
trial_ balance - Verify trial balance is balanced (total debits = total credits).
- is_
balanced - Check if a journal entry is balanced.