summaryrefslogtreecommitdiff
path: root/test/baseline/opt-dc.test
diff options
context:
space:
mode:
authortripun <tripun@gmail.com>2014-08-09 15:52:43 +0530
committerMartin Michlmayr <tbm@cyrius.com>2014-08-10 08:40:32 +0200
commitc05432b84f91f2d803302c8e7668878c10f8f31e (patch)
tree86cdb283ec4ae08bea426b5f6a130b80a2a44220 /test/baseline/opt-dc.test
parent6ef7ed5c4b8935feb3d6a8b18378a35a87be1352 (diff)
downloadfork-ledger-c05432b84f91f2d803302c8e7668878c10f8f31e.tar.gz
fork-ledger-c05432b84f91f2d803302c8e7668878c10f8f31e.tar.bz2
fork-ledger-c05432b84f91f2d803302c8e7668878c10f8f31e.zip
add test for --dc
Diffstat (limited to 'test/baseline/opt-dc.test')
-rw-r--r--test/baseline/opt-dc.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/baseline/opt-dc.test b/test/baseline/opt-dc.test
index 24a564dd..5990c882 100644
--- a/test/baseline/opt-dc.test
+++ b/test/baseline/opt-dc.test
@@ -14,3 +14,25 @@
Expenses:Food $20
Expenses:Food $-5
Assets:Cash
+
+test reg --dc
+12-Mar-10 Employer Assets:Cash $100 0 $100
+ Incom:Employer 0 $100 0
+12-Mar-10 KFC Expenses:Food $20 0 $20
+ Assets:Cash 0 $20 0
+12-Mar-10 KFC - Rebate Assets:Cash $5 0 $5
+ Expenses:Food 0 $5 0
+12-Mar-10 KFC - Food & R.. Expenses:Food $20 0 $20
+ Expenses:Food 0 $5 $15
+ Assets:Cash 0 $15 0
+end test
+
+test bal --dc
+ $105 $35 $70 Assets:Cash
+ $40 $10 $30 Expenses:Food
+ 0 $100 $-100 Income:Employer
+--------------------------------------------
+ $145 $145 0
+end test
+
+