summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2018-01-27 00:42:39 -0800
committerGitHub <noreply@github.com>2018-01-27 00:42:39 -0800
commitb7b0280066ab36fd8edf5121826780beac391157 (patch)
treef7dbfb382f93124c0754b2c000e2d9f17b333740 /test
parent1be23f1653724b4e7a197662bc5418c5996b1136 (diff)
parent6b998aee1023112f27cd2d34d85b189714a944e0 (diff)
downloadfork-ledger-b7b0280066ab36fd8edf5121826780beac391157.tar.gz
fork-ledger-b7b0280066ab36fd8edf5121826780beac391157.tar.bz2
fork-ledger-b7b0280066ab36fd8edf5121826780beac391157.zip
Merge pull request #519 from mbudde/accounts-prepend-format
Add support for --prepend-format in accounts command
Diffstat (limited to 'test')
-rw-r--r--test/baseline/opt-prepend-format.test5
-rw-r--r--test/baseline/opt-prepend-width.test5
2 files changed, 10 insertions, 0 deletions
diff --git a/test/baseline/opt-prepend-format.test b/test/baseline/opt-prepend-format.test
index 105930f1..de79d72e 100644
--- a/test/baseline/opt-prepend-format.test
+++ b/test/baseline/opt-prepend-format.test
@@ -15,3 +15,8 @@ VMMXX07-Feb-02 RD VMMXX As:Inves:Vanguar:VMMXX 0.350 VMMXX 0.350
VMMXX In:Divid:Vanguar:VMMXX $-0.35 $-0.35
0.350 VMMXX
end test
+
+test accounts --prepend-format "%(account_base) "
+VMMXX Assets:Investments:Vanguard:VMMXX
+VMMXX Income:Dividends:Vanguard:VMMXX
+end test
diff --git a/test/baseline/opt-prepend-width.test b/test/baseline/opt-prepend-width.test
index c20baeb4..0efd220f 100644
--- a/test/baseline/opt-prepend-width.test
+++ b/test/baseline/opt-prepend-width.test
@@ -15,3 +15,8 @@ test reg --prepend-format "%(account_base) " --prepend-width=10
VMMXX In:Divid:Vanguar:VMMXX $-0.35 $-0.35
0.350 VMMXX
end test
+
+test accounts --prepend-format "%(account_base) " --prepend-width=10
+ VMMXX Assets:Investments:Vanguard:VMMXX
+ VMMXX Income:Dividends:Vanguard:VMMXX
+end test