diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-20 20:30:43 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-20 20:30:43 -0400 |
commit | 96ff798736cd06812fb7e463c14d6c356c8228e3 (patch) | |
tree | 7e61a411640d891cebaceba737a27ab2b6747a59 | |
parent | 8ed4f3562fc1ffbb3f393da603fcf45f7a0050b2 (diff) | |
download | fork-ledger-96ff798736cd06812fb7e463c14d6c356c8228e3.tar.gz fork-ledger-96ff798736cd06812fb7e463c14d6c356c8228e3.tar.bz2 fork-ledger-96ff798736cd06812fb7e463c14d6c356c8228e3.zip |
Added more option baseline tests
-rw-r--r-- | test/baseline/opt-effective.test | 22 | ||||
-rw-r--r-- | test/baseline/opt-empty.test | 19 | ||||
-rw-r--r-- | test/baseline/opt-end.test | 248 | ||||
-rw-r--r-- | test/baseline/opt-equity.test | 11 | ||||
-rw-r--r-- | test/baseline/opt-flat.test | 32 |
5 files changed, 332 insertions, 0 deletions
diff --git a/test/baseline/opt-effective.test b/test/baseline/opt-effective.test new file mode 100644 index 00000000..0ce08550 --- /dev/null +++ b/test/baseline/opt-effective.test @@ -0,0 +1,22 @@ +reg --effective +<<< +2008/01/01 January + Expenses:Books $10.00 + Assets:Cash + +2008/01/31=2008/01/01 End of January + Expenses:Books $10.00 ; [=2008/02/01] + Assets:Cash + +2008/02/01 February + Expenses:Books $20.00 + Assets:Cash +>>>1 +08-Jan-01 January Expenses:Books $10.00 $10.00 + Assets:Cash $-10.00 0 +08-Feb-01 End of January Expenses:Books $10.00 $10.00 +08-Jan-01 End of January Assets:Cash $-10.00 0 +08-Feb-01 February Expenses:Books $20.00 $20.00 + Assets:Cash $-20.00 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-empty.test b/test/baseline/opt-empty.test new file mode 100644 index 00000000..18b2bd32 --- /dev/null +++ b/test/baseline/opt-empty.test @@ -0,0 +1,19 @@ +reg --collapse --empty +<<< +2008/01/01 January + Expenses:Books $10.00 + Assets:Cash + +2008/01/31=2008/01/01 End of January + Expenses:Books $10.00 ; [=2008/02/01] + Assets:Cash + +2008/02/01 February + Expenses:Books $20.00 + Assets:Cash +>>>1 +08-Jan-01 January <Total> 0 0 +08-Jan-31 End of January <Total> 0 0 +08-Feb-01 February <Total> 0 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-end.test b/test/baseline/opt-end.test new file mode 100644 index 00000000..d5c7f5c0 --- /dev/null +++ b/test/baseline/opt-end.test @@ -0,0 +1,248 @@ +reg --end=2009/02 +<<< +2008/01/01 January + Expenses:Books $10.00 + Assets:Cash + +2008/01/31 End of January + Expenses:Books $10.00 + Assets:Cash + +2008/02/01 February + Expenses:Books $20.00 + Assets:Cash + +2008/02/28 End of February + Expenses:Books $20.00 + Assets:Cash + +2008/03/01 March + Expenses:Books $30.00 + Assets:Cash + +2008/03/31 End of March + Expenses:Books $30.00 + Assets:Cash + +2008/04/01 April + Expenses:Books $40.00 + Assets:Cash + +2008/04/30 End of April + Expenses:Books $40.00 + Assets:Cash + +2008/05/01 May + Expenses:Books $50.00 + Assets:Cash + +2008/05/31 End of May + Expenses:Books $50.00 + Assets:Cash + +2008/06/01 June + Expenses:Books $60.00 + Assets:Cash + +2008/06/30 End of June + Expenses:Books $60.00 + Assets:Cash + +2008/07/01 July + Expenses:Books $70.00 + Assets:Cash + +2008/07/31 End of July + Expenses:Books $70.00 + Assets:Cash + +2008/08/01 August + Expenses:Books $80.00 + Assets:Cash + +2008/08/31 End of August + Expenses:Books $80.00 + Assets:Cash + +2008/09/01 September + Expenses:Books $90.00 + Assets:Cash + +2008/09/30 End of September + Expenses:Books $90.00 + Assets:Cash + +2008/10/01 October + Expenses:Books $100.00 + Assets:Cash + +2008/10/31 End of October + Expenses:Books $100.00 + Assets:Cash + +2008/11/01 November + Expenses:Books $110.00 + Assets:Cash + +2008/11/30 End of November + Expenses:Books $110.00 + Assets:Cash + +2008/12/01 December + Expenses:Books $120.00 + Assets:Cash + +2008/12/31 End of December + Expenses:Books $120.00 + Assets:Cash + +2009/01/01 January + Expenses:Books $10.00 + Assets:Cash + +2009/01/31 End of January + Expenses:Books $10.00 + Assets:Cash + +2009/02/01 February + Expenses:Books $20.00 + Assets:Cash + +2009/02/28 End of February + Expenses:Books $20.00 + Assets:Cash + +2009/03/01 March + Expenses:Books $30.00 + Assets:Cash + +2009/03/31 End of March + Expenses:Books $30.00 + Assets:Cash + +2009/04/01 April + Expenses:Books $40.00 + Assets:Cash + +2009/04/30 End of April + Expenses:Books $40.00 + Assets:Cash + +2009/05/01 May + Expenses:Books $50.00 + Assets:Cash + +2009/05/31 End of May + Expenses:Books $50.00 + Assets:Cash + +2009/06/01 June + Expenses:Books $60.00 + Assets:Cash + +2009/06/30 End of June + Expenses:Books $60.00 + Assets:Cash + +2009/07/01 July + Expenses:Books $70.00 + Assets:Cash + +2009/07/31 End of July + Expenses:Books $70.00 + Assets:Cash + +2009/08/01 August + Expenses:Books $80.00 + Assets:Cash + +2009/08/31 End of August + Expenses:Books $80.00 + Assets:Cash + +2009/09/01 September + Expenses:Books $90.00 + Assets:Cash + +2009/09/30 End of September + Expenses:Books $90.00 + Assets:Cash + +2009/10/01 October + Expenses:Books $100.00 + Assets:Cash + +2009/10/31 End of October + Expenses:Books $100.00 + Assets:Cash + +2009/11/01 November + Expenses:Books $110.00 + Assets:Cash + +2009/11/30 End of November + Expenses:Books $110.00 + Assets:Cash + +2009/12/01 December + Expenses:Books $120.00 + Assets:Cash + +2009/12/31 End of December + Expenses:Books $120.00 + Assets:Cash +>>>1 +08-Jan-01 January Expenses:Books $10.00 $10.00 + Assets:Cash $-10.00 0 +08-Jan-31 End of January Expenses:Books $10.00 $10.00 + Assets:Cash $-10.00 0 +08-Feb-01 February Expenses:Books $20.00 $20.00 + Assets:Cash $-20.00 0 +08-Feb-28 End of February Expenses:Books $20.00 $20.00 + Assets:Cash $-20.00 0 +08-Mar-01 March Expenses:Books $30.00 $30.00 + Assets:Cash $-30.00 0 +08-Mar-31 End of March Expenses:Books $30.00 $30.00 + Assets:Cash $-30.00 0 +08-Apr-01 April Expenses:Books $40.00 $40.00 + Assets:Cash $-40.00 0 +08-Apr-30 End of April Expenses:Books $40.00 $40.00 + Assets:Cash $-40.00 0 +08-May-01 May Expenses:Books $50.00 $50.00 + Assets:Cash $-50.00 0 +08-May-31 End of May Expenses:Books $50.00 $50.00 + Assets:Cash $-50.00 0 +08-Jun-01 June Expenses:Books $60.00 $60.00 + Assets:Cash $-60.00 0 +08-Jun-30 End of June Expenses:Books $60.00 $60.00 + Assets:Cash $-60.00 0 +08-Jul-01 July Expenses:Books $70.00 $70.00 + Assets:Cash $-70.00 0 +08-Jul-31 End of July Expenses:Books $70.00 $70.00 + Assets:Cash $-70.00 0 +08-Aug-01 August Expenses:Books $80.00 $80.00 + Assets:Cash $-80.00 0 +08-Aug-31 End of August Expenses:Books $80.00 $80.00 + Assets:Cash $-80.00 0 +08-Sep-01 September Expenses:Books $90.00 $90.00 + Assets:Cash $-90.00 0 +08-Sep-30 End of September Expenses:Books $90.00 $90.00 + Assets:Cash $-90.00 0 +08-Oct-01 October Expenses:Books $100.00 $100.00 + Assets:Cash $-100.00 0 +08-Oct-31 End of October Expenses:Books $100.00 $100.00 + Assets:Cash $-100.00 0 +08-Nov-01 November Expenses:Books $110.00 $110.00 + Assets:Cash $-110.00 0 +08-Nov-30 End of November Expenses:Books $110.00 $110.00 + Assets:Cash $-110.00 0 +08-Dec-01 December Expenses:Books $120.00 $120.00 + Assets:Cash $-120.00 0 +08-Dec-31 End of December Expenses:Books $120.00 $120.00 + Assets:Cash $-120.00 0 +09-Jan-01 January Expenses:Books $10.00 $10.00 + Assets:Cash $-10.00 0 +09-Jan-31 End of January Expenses:Books $10.00 $10.00 + Assets:Cash $-10.00 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-equity.test b/test/baseline/opt-equity.test new file mode 100644 index 00000000..b09e9ad0 --- /dev/null +++ b/test/baseline/opt-equity.test @@ -0,0 +1,11 @@ +equity assets +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +2007/02/02 Opening Balances + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX + Equity:Opening Balances -0.350 VMMXX +>>>2 +=== 0 diff --git a/test/baseline/opt-flat.test b/test/baseline/opt-flat.test new file mode 100644 index 00000000..ddf37d2e --- /dev/null +++ b/test/baseline/opt-flat.test @@ -0,0 +1,32 @@ +bal --flat +<<< +2008/01/01 January + Expenses:Books $10.00 + Assets:Cash + +2008/01/01 January + Expenses:One:Books $10.00 + Expenses:One:Two:Books $10.00 + Expenses:One:Two:Three:Books $10.00 + Assets:Cash + +2008/01/01 January + Assets:Cash + Income:Books $-10.00 + +2008/01/01 January + Assets:Cash + Income:One:Books $-10.00 + Income:One:Two:Books $-10.00 + Income:One:Two:Three:Books $-10.00 +>>>1 + $10.00 Expenses:Books + $10.00 Expenses:One:Books + $10.00 Expenses:One:Two:Books + $10.00 Expenses:One:Two:Three:Books + $-10.00 Income:Books + $-10.00 Income:One:Books + $-10.00 Income:One:Two:Books + $-10.00 Income:One:Two:Three:Books +>>>2 +=== 0 |