From c78f84cef288a47e590a58e778dbc065c659c83d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 26 Jun 2010 00:58:30 -0400 Subject: [PATCH] Added baseline tests for prepend-format/width --- test/baseline/opt-prepend-format.test | 17 +++++++++++++++++ test/baseline/opt-prepend-width.test | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) 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 diff --git a/test/baseline/opt-prepend-width.test b/test/baseline/opt-prepend-width.test index e69de29b..488f737b 100644 --- a/test/baseline/opt-prepend-width.test +++ b/test/baseline/opt-prepend-width.test @@ -0,0 +1,17 @@ +bal --prepend-format "%(account_base) " --prepend-width=10 +<<< +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) " --prepend-width=10 +>>> + VMMXX 07-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