summaryrefslogtreecommitdiff
path: root/test/regress/F524E251.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/regress/F524E251.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/regress/F524E251.test')
-rw-r--r--test/regress/F524E251.test37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/regress/F524E251.test b/test/regress/F524E251.test
new file mode 100644
index 00000000..d2d2f049
--- /dev/null
+++ b/test/regress/F524E251.test
@@ -0,0 +1,37 @@
+; Test for: ledger -f doc/sample.dat -n reg' shows $0.00 on first post
+
+= /^Expenses:Books/
+ (Liabilities:Taxes) -0.10
+
+~ Monthly
+ Assets:Bank:Checking $500.00
+ Income:Salary
+
+2004/05/01 * Checking balance
+ Assets:Bank:Checking $1,000.00
+ Equity:Opening Balances
+
+2004/05/01 * Investment balance
+ Assets:Brokerage 50 AAPL @ $30.00
+ Equity:Opening Balances
+
+2004/05/14 * Pay day
+ Assets:Bank:Checking $500.00
+ Income:Salary
+
+2004/05/27 Book Store
+ Expenses:Books $20.00
+ Liabilities:MasterCard
+
+2004/05/27 (100) Credit card company
+ Liabilities:MasterCard $20.00
+ Assets:Bank:Checking
+
+test -n reg
+04-May-01 Investment balance <Total> $-1,500.00
+ 50 AAPL $-1,500.00
+ 50 AAPL
+04-May-27 Book Store <Total> $-2.00 $-1,502.00
+ 50 AAPL
+end test
+