From 8483ea16e23eefd3281774c142c7117a8a87c245 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Feb 2009 18:36:47 -0400 Subject: Added more option baseline tests --- test/baseline/opt-collapse-if-zero.test | 15 +++++++++++++++ test/baseline/opt-columns.test | 11 +++++++++++ test/baseline/opt-commodity-as-account.test | 11 +++++++++++ test/baseline/opt-commodity-as-payee.test | 11 +++++++++++ test/baseline/opt-csv-format.test | 10 ++++++++++ 5 files changed, 58 insertions(+) create mode 100644 test/baseline/opt-collapse-if-zero.test create mode 100644 test/baseline/opt-columns.test create mode 100644 test/baseline/opt-commodity-as-account.test create mode 100644 test/baseline/opt-commodity-as-payee.test create mode 100644 test/baseline/opt-csv-format.test (limited to 'test/baseline') diff --git a/test/baseline/opt-collapse-if-zero.test b/test/baseline/opt-collapse-if-zero.test new file mode 100644 index 00000000..fb4d33fd --- /dev/null +++ b/test/baseline/opt-collapse-if-zero.test @@ -0,0 +1,15 @@ +reg --collapse-if-zero +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX $0.35 + Income:Dividends:Vanguard:VMMXX $-0.35 + +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +07-Feb-02 RD VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX + In:Di:Vanguard:VMMXX $-0.35 $-0.35 + 0.350 VMMXX +>>>2 +=== 0 diff --git a/test/baseline/opt-columns.test b/test/baseline/opt-columns.test new file mode 100644 index 00000000..4dc28d9b --- /dev/null +++ b/test/baseline/opt-columns.test @@ -0,0 +1,11 @@ +reg --columns=100 +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +07-Feb-02 RD VMMXX As:Investments:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX + In:Dividends:Vanguard:VMMXX $-0.35 $-0.35 + 0.350 VMMXX +>>>2 +=== 0 diff --git a/test/baseline/opt-commodity-as-account.test b/test/baseline/opt-commodity-as-account.test new file mode 100644 index 00000000..6dcf8ace --- /dev/null +++ b/test/baseline/opt-commodity-as-account.test @@ -0,0 +1,11 @@ +reg --commodity-as-account +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +07-Feb-02 RD VMMXX VMMXX 0.350 VMMXX 0.350 VMMXX +07-Feb-02 RD VMMXX $ $-0.35 $-0.35 + 0.350 VMMXX +>>>2 +=== 0 diff --git a/test/baseline/opt-commodity-as-payee.test b/test/baseline/opt-commodity-as-payee.test new file mode 100644 index 00000000..9872a15c --- /dev/null +++ b/test/baseline/opt-commodity-as-payee.test @@ -0,0 +1,11 @@ +reg --commodity-as-payee +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +07-Feb-02 VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX +07-Feb-02 $ In:Di:Vanguard:VMMXX $-0.35 $-0.35 + 0.350 VMMXX +>>>2 +=== 0 diff --git a/test/baseline/opt-csv-format.test b/test/baseline/opt-csv-format.test new file mode 100644 index 00000000..7efefc0d --- /dev/null +++ b/test/baseline/opt-csv-format.test @@ -0,0 +1,10 @@ +csv --csv-format='"%(date)"\n' +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +"07-Feb-02" +"07-Feb-02" +>>>2 +=== 0 -- cgit v1.2.3