diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2012-03-23 08:58:33 +0000 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2012-03-23 08:58:33 +0000 |
commit | 5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41 (patch) | |
tree | ad66deafca1f1b6e774b3a652860f4f8eae2eabf /test/baseline/cmd-balance.test | |
parent | 8e6a3ce0d0f838daaad05ee638a8df0d2e7616fa (diff) | |
download | fork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.tar.gz fork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.tar.bz2 fork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.zip |
Add more baseline tests
Diffstat (limited to 'test/baseline/cmd-balance.test')
-rw-r--r-- | test/baseline/cmd-balance.test | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/test/baseline/cmd-balance.test b/test/baseline/cmd-balance.test new file mode 100644 index 00000000..064a046d --- /dev/null +++ b/test/baseline/cmd-balance.test @@ -0,0 +1,85 @@ + +2012-01-01 * Opening balances + Assets:A 10.00 + Equity:Opening balances -10.00 + +2012-01-02 * A to B + Assets:A -10.00 + Assets:B 10.00 + +2012-01-03 * B partly to C + Assets:B -5.00 + Assets:C 5.00 + +2012-01-04 * Borrow + Assets:A 10.00 + Liabilities:A -10.00 + +2012-01-05 * Return A + Assets:A -10.00 + Liabilities:A 10.00 + +test bal + 10 Assets + 5 B + 5 C + -10 Equity:Opening balances +-------------------- + 0 +end test + +test bal -n + 10 Assets + -10 Equity +-------------------- + 0 +end test + +test bal -n -E + 10 Assets + -10 Equity + 0 Liabilities +-------------------- + 0 +end test + +test bal -E + 10 Assets + 0 A + 5 B + 5 C + -10 Equity:Opening balances + 0 Liabilities:A +-------------------- + 0 +end test + +test bal --flat + 5 Assets:B + 5 Assets:C + -10 Equity:Opening balances +-------------------- + 0 +end test + +test bal --flat -E + 0 Assets:A + 5 Assets:B + 5 Assets:C + -10 Equity:Opening balances + 0 Liabilities:A +-------------------- + 0 +end test + +test bal -E --flat --no-total + 0 Assets:A + 5 Assets:B + 5 Assets:C + -10 Equity:Opening balances + 0 Liabilities:A +end test + +test bal -n --flat +end test + |