summaryrefslogtreecommitdiff
path: root/test/baseline/feat-balance-assignments.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-13 17:44:12 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-13 17:44:12 +0100
commit15193ffb3b6558451045611572c9211f2593c062 (patch)
tree920a8fc8c16886eb2363a2fc30741020e748b86a /test/baseline/feat-balance-assignments.test
parent9c5c1eb7763d4bc38a6be579da03c349fb35e93d (diff)
downloadfork-ledger-15193ffb3b6558451045611572c9211f2593c062.tar.gz
fork-ledger-15193ffb3b6558451045611572c9211f2593c062.tar.bz2
fork-ledger-15193ffb3b6558451045611572c9211f2593c062.zip
Added a baseline test for balance assignments
Diffstat (limited to 'test/baseline/feat-balance-assignments.test')
-rw-r--r--test/baseline/feat-balance-assignments.test37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/baseline/feat-balance-assignments.test b/test/baseline/feat-balance-assignments.test
new file mode 100644
index 00000000..74fe9ddb
--- /dev/null
+++ b/test/baseline/feat-balance-assignments.test
@@ -0,0 +1,37 @@
+bal
+<<<
+2009/01/01 Entry
+ Assets:Cash $10,000.00
+ Equity:Opening Balances
+
+2009/02/01 Entry
+ Expenses:Cash $100.00
+ Assets:Cash
+
+2009/02/02 Entry
+ Expenses:Cash $100.00
+ Assets:Cash
+
+2009/02/03 Entry
+ Expenses:Cash $100.00
+ Assets:Cash $-100.00 = $9,700.00
+
+2009/02/04 Entry
+ Expenses:Cash $100.00
+ Assets:Cash $-100.00 = $9,600.00
+
+2009/02/05 Entry
+ Expenses:Cash $100.00
+ Assets:Cash
+
+2009/02/05 Entry
+ Expenses:Cash
+ Assets:Cash = ($4,000.00 + $100.00)
+>>>1
+ $4,100.00 Assets:Cash
+ $-10,000.00 Equity:Opening Balances
+ $5,900.00 Expenses:Cash
+--------------------
+ 0
+>>>2
+=== 0