summaryrefslogtreecommitdiff
path: root/test/baseline/cmd-balance.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-04-26 16:39:25 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-04-26 16:39:25 -0500
commit64a9b42381c26baf24e58b40f50f0b253e551811 (patch)
tree5447a29dff64c3a8b7be8100a01bcb4a2d73b0bb /test/baseline/cmd-balance.test
parent7cc550fc22357e2ded194d3e65287c6b3317f5ae (diff)
parentb4407c10c0071365322b2963747bf42a57fd7304 (diff)
downloadfork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.tar.gz
fork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.tar.bz2
fork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.zip
Merge branch 'release/v3.0.0-20120426'
Diffstat (limited to 'test/baseline/cmd-balance.test')
-rw-r--r--test/baseline/cmd-balance.test85
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
+