summaryrefslogtreecommitdiff
path: root/test/baseline/opt-prepend-format.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-26 00:58:30 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-26 00:58:30 -0400
commitc78f84cef288a47e590a58e778dbc065c659c83d (patch)
tree5cdcb3df1e5d3bf973fd47225367b6802922787a /test/baseline/opt-prepend-format.test
parentbd5a136ad06559a15c5e9f65c65d425b22d2bdab (diff)
downloadfork-ledger-c78f84cef288a47e590a58e778dbc065c659c83d.tar.gz
fork-ledger-c78f84cef288a47e590a58e778dbc065c659c83d.tar.bz2
fork-ledger-c78f84cef288a47e590a58e778dbc065c659c83d.zip
Added baseline tests for prepend-format/width
Diffstat (limited to 'test/baseline/opt-prepend-format.test')
-rw-r--r--test/baseline/opt-prepend-format.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/baseline/opt-prepend-format.test b/test/baseline/opt-prepend-format.test
index e69de29b..35b6e8d0 100644
--- a/test/baseline/opt-prepend-format.test
+++ b/test/baseline/opt-prepend-format.test
@@ -0,0 +1,17 @@
+bal --prepend-format "%(account_base)"
+<<<
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+>>>
+VMMXX 0.350 VMMXX Assets:Investments:Vanguard:VMMXX
+VMMXX $-0.35 Income:Dividends:Vanguard:VMMXX
+--------------------
+ $-0.35
+ 0.350 VMMXX
+=== 0
+reg --prepend-format "%(account_base)"
+>>>
+VMMXX07-Feb-02 RD VMMXX As:Inves:Vanguar:VMMXX 0.350 VMMXX 0.350 VMMXX
+VMMXX In:Divid:Vanguar:VMMXX $-0.35 $-0.35
+ 0.350 VMMXX