diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-21 02:24:41 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-21 02:24:41 -0400 |
commit | 5d50d895bf4aaa139c4b632820b661de383b2ef3 (patch) | |
tree | 0608ed369352bb3e4f5f91abf2d21f14696c5d38 /test/baseline | |
parent | 7bede3ac76f152f0c2f113d8c38a3d03c35c405a (diff) | |
download | fork-ledger-5d50d895bf4aaa139c4b632820b661de383b2ef3.tar.gz fork-ledger-5d50d895bf4aaa139c4b632820b661de383b2ef3.tar.bz2 fork-ledger-5d50d895bf4aaa139c4b632820b661de383b2ef3.zip |
Added several more baseline tests
Diffstat (limited to 'test/baseline')
-rw-r--r-- | test/baseline/opt-format.test | 10 | ||||
-rw-r--r-- | test/baseline/opt-head.test | 206 | ||||
-rw-r--r-- | test/baseline/opt-monthly.test | 220 | ||||
-rw-r--r-- | test/baseline/opt-pending.test | 200 | ||||
-rw-r--r-- | test/baseline/opt-quarterly.test | 204 | ||||
-rw-r--r-- | test/baseline/opt-tail.test | 206 | ||||
-rw-r--r-- | test/baseline/opt-uncleared.test | 286 | ||||
-rw-r--r-- | test/baseline/opt-weekly.test | 225 | ||||
-rw-r--r-- | test/baseline/opt-wide.test | 11 | ||||
-rw-r--r-- | test/baseline/opt-yearly.test | 198 |
10 files changed, 1766 insertions, 0 deletions
diff --git a/test/baseline/opt-format.test b/test/baseline/opt-format.test new file mode 100644 index 00000000..9841ea1a --- /dev/null +++ b/test/baseline/opt-format.test @@ -0,0 +1,10 @@ +reg --format='%(account) = %(strip(amount))\n' +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +Assets:Investments:Vanguard:VMMXX = 0.350 VMMXX +Income:Dividends:Vanguard:VMMXX = $-0.35 +>>>2 +=== 0 diff --git a/test/baseline/opt-head.test b/test/baseline/opt-head.test new file mode 100644 index 00000000..eeca0b12 --- /dev/null +++ b/test/baseline/opt-head.test @@ -0,0 +1,206 @@ +reg --head=10 books +<<< +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 +08-Jan-31 End of January Expenses:Books $10.00 $20.00 +08-Feb-01 February Expenses:Books $20.00 $40.00 +08-Feb-28 End of February Expenses:Books $20.00 $60.00 +08-Mar-01 March Expenses:Books $30.00 $90.00 +08-Mar-31 End of March Expenses:Books $30.00 $120.00 +08-Apr-01 April Expenses:Books $40.00 $160.00 +08-Apr-30 End of April Expenses:Books $40.00 $200.00 +08-May-01 May Expenses:Books $50.00 $250.00 +08-May-31 End of May Expenses:Books $50.00 $300.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-monthly.test b/test/baseline/opt-monthly.test new file mode 100644 index 00000000..53942ee1 --- /dev/null +++ b/test/baseline/opt-monthly.test @@ -0,0 +1,220 @@ +reg --monthly books +<<< +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 - 08-Jan-31 Expenses:Books $20.00 $20.00 +08-Feb-01 - 08-Feb-29 Expenses:Books $40.00 $60.00 +08-Mar-01 - 08-Mar-31 Expenses:Books $60.00 $120.00 +08-Apr-01 - 08-Apr-30 Expenses:Books $80.00 $200.00 +08-May-01 - 08-May-31 Expenses:Books $100.00 $300.00 +08-Jun-01 - 08-Jun-30 Expenses:Books $120.00 $420.00 +08-Jul-01 - 08-Jul-31 Expenses:Books $140.00 $560.00 +08-Aug-01 - 08-Aug-31 Expenses:Books $160.00 $720.00 +08-Sep-01 - 08-Sep-30 Expenses:Books $180.00 $900.00 +08-Oct-01 - 08-Oct-31 Expenses:Books $200.00 $1100.00 +08-Nov-01 - 08-Nov-30 Expenses:Books $220.00 $1320.00 +08-Dec-01 - 08-Dec-31 Expenses:Books $240.00 $1560.00 +09-Jan-01 - 09-Jan-31 Expenses:Books $20.00 $1580.00 +09-Feb-01 - 09-Feb-28 Expenses:Books $40.00 $1620.00 +09-Mar-01 - 09-Mar-31 Expenses:Books $60.00 $1680.00 +09-Apr-01 - 09-Apr-30 Expenses:Books $80.00 $1760.00 +09-May-01 - 09-May-31 Expenses:Books $100.00 $1860.00 +09-Jun-01 - 09-Jun-30 Expenses:Books $120.00 $1980.00 +09-Jul-01 - 09-Jul-31 Expenses:Books $140.00 $2120.00 +09-Aug-01 - 09-Aug-31 Expenses:Books $160.00 $2280.00 +09-Sep-01 - 09-Sep-30 Expenses:Books $180.00 $2460.00 +09-Oct-01 - 09-Oct-31 Expenses:Books $200.00 $2660.00 +09-Nov-01 - 09-Nov-30 Expenses:Books $220.00 $2880.00 +09-Dec-01 - 09-Dec-31 Expenses:Books $240.00 $3120.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-pending.test b/test/baseline/opt-pending.test new file mode 100644 index 00000000..9a3507be --- /dev/null +++ b/test/baseline/opt-pending.test @@ -0,0 +1,200 @@ +reg --pending +<<< +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-Feb-01 February Expenses:Books $20.00 $20.00 + Assets:Cash $-20.00 0 +08-May-01 May Assets:Cash $-50.00 $-50.00 +08-May-31 End of May Assets:Cash $-50.00 $-100.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-quarterly.test b/test/baseline/opt-quarterly.test new file mode 100644 index 00000000..b96e11ff --- /dev/null +++ b/test/baseline/opt-quarterly.test @@ -0,0 +1,204 @@ +reg --quarterly books +<<< +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 - 08-Mar-31 Expenses:Books $120.00 $120.00 +08-Apr-01 - 08-Jun-30 Expenses:Books $300.00 $420.00 +08-Jul-01 - 08-Sep-30 Expenses:Books $480.00 $900.00 +08-Oct-01 - 08-Dec-31 Expenses:Books $660.00 $1560.00 +09-Jan-01 - 09-Mar-31 Expenses:Books $120.00 $1680.00 +09-Apr-01 - 09-Jun-30 Expenses:Books $300.00 $1980.00 +09-Jul-01 - 09-Sep-30 Expenses:Books $480.00 $2460.00 +09-Oct-01 - 09-Dec-31 Expenses:Books $660.00 $3120.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-tail.test b/test/baseline/opt-tail.test new file mode 100644 index 00000000..0f0b862b --- /dev/null +++ b/test/baseline/opt-tail.test @@ -0,0 +1,206 @@ +reg --tail=10 books +<<< +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 +09-Aug-01 August Expenses:Books $80.00 $2200.00 +09-Aug-31 End of August Expenses:Books $80.00 $2280.00 +09-Sep-01 September Expenses:Books $90.00 $2370.00 +09-Sep-30 End of September Expenses:Books $90.00 $2460.00 +09-Oct-01 October Expenses:Books $100.00 $2560.00 +09-Oct-31 End of October Expenses:Books $100.00 $2660.00 +09-Nov-01 November Expenses:Books $110.00 $2770.00 +09-Nov-30 End of November Expenses:Books $110.00 $2880.00 +09-Dec-01 December Expenses:Books $120.00 $3000.00 +09-Dec-31 End of December Expenses:Books $120.00 $3120.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-uncleared.test b/test/baseline/opt-uncleared.test new file mode 100644 index 00000000..95e976ad --- /dev/null +++ b/test/baseline/opt-uncleared.test @@ -0,0 +1,286 @@ +reg --uncleared +<<< +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-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-31 End of March Expenses:Books $30.00 $30.00 + Assets:Cash $-30.00 0 +08-Apr-01 April Assets:Cash $-40.00 $-40.00 +08-Apr-30 End of April Assets:Cash $-40.00 $-80.00 +08-May-01 May Expenses:Books $50.00 $-30.00 + Assets:Cash $-50.00 $-80.00 +08-May-31 End of May Expenses:Books $50.00 $-30.00 + Assets:Cash $-50.00 $-80.00 +08-Jun-01 June Expenses:Books $60.00 $-20.00 + Assets:Cash $-60.00 $-80.00 +08-Jun-30 End of June Expenses:Books $60.00 $-20.00 + Assets:Cash $-60.00 $-80.00 +08-Jul-01 July Expenses:Books $70.00 $-10.00 + Assets:Cash $-70.00 $-80.00 +08-Jul-31 End of July Expenses:Books $70.00 $-10.00 + Assets:Cash $-70.00 $-80.00 +08-Aug-01 August Expenses:Books $80.00 0 + Assets:Cash $-80.00 $-80.00 +08-Aug-31 End of August Expenses:Books $80.00 0 + Assets:Cash $-80.00 $-80.00 +08-Sep-01 September Expenses:Books $90.00 $10.00 + Assets:Cash $-90.00 $-80.00 +08-Sep-30 End of September Expenses:Books $90.00 $10.00 + Assets:Cash $-90.00 $-80.00 +08-Oct-01 October Expenses:Books $100.00 $20.00 + Assets:Cash $-100.00 $-80.00 +08-Oct-31 End of October Expenses:Books $100.00 $20.00 + Assets:Cash $-100.00 $-80.00 +08-Nov-01 November Expenses:Books $110.00 $30.00 + Assets:Cash $-110.00 $-80.00 +08-Nov-30 End of November Expenses:Books $110.00 $30.00 + Assets:Cash $-110.00 $-80.00 +08-Dec-01 December Expenses:Books $120.00 $40.00 + Assets:Cash $-120.00 $-80.00 +08-Dec-31 End of December Expenses:Books $120.00 $40.00 + Assets:Cash $-120.00 $-80.00 +09-Jan-01 January Expenses:Books $10.00 $-70.00 + Assets:Cash $-10.00 $-80.00 +09-Jan-31 End of January Expenses:Books $10.00 $-70.00 + Assets:Cash $-10.00 $-80.00 +09-Feb-01 February Expenses:Books $20.00 $-60.00 + Assets:Cash $-20.00 $-80.00 +09-Feb-28 End of February Expenses:Books $20.00 $-60.00 + Assets:Cash $-20.00 $-80.00 +09-Mar-01 March Expenses:Books $30.00 $-50.00 + Assets:Cash $-30.00 $-80.00 +09-Mar-31 End of March Expenses:Books $30.00 $-50.00 + Assets:Cash $-30.00 $-80.00 +09-Apr-01 April Expenses:Books $40.00 $-40.00 + Assets:Cash $-40.00 $-80.00 +09-Apr-30 End of April Expenses:Books $40.00 $-40.00 + Assets:Cash $-40.00 $-80.00 +09-May-01 May Expenses:Books $50.00 $-30.00 + Assets:Cash $-50.00 $-80.00 +09-May-31 End of May Expenses:Books $50.00 $-30.00 + Assets:Cash $-50.00 $-80.00 +09-Jun-01 June Expenses:Books $60.00 $-20.00 + Assets:Cash $-60.00 $-80.00 +09-Jun-30 End of June Expenses:Books $60.00 $-20.00 + Assets:Cash $-60.00 $-80.00 +09-Jul-01 July Expenses:Books $70.00 $-10.00 + Assets:Cash $-70.00 $-80.00 +09-Jul-31 End of July Expenses:Books $70.00 $-10.00 + Assets:Cash $-70.00 $-80.00 +09-Aug-01 August Expenses:Books $80.00 0 + Assets:Cash $-80.00 $-80.00 +09-Aug-31 End of August Expenses:Books $80.00 0 + Assets:Cash $-80.00 $-80.00 +09-Sep-01 September Expenses:Books $90.00 $10.00 + Assets:Cash $-90.00 $-80.00 +09-Sep-30 End of September Expenses:Books $90.00 $10.00 + Assets:Cash $-90.00 $-80.00 +09-Oct-01 October Expenses:Books $100.00 $20.00 + Assets:Cash $-100.00 $-80.00 +09-Oct-31 End of October Expenses:Books $100.00 $20.00 + Assets:Cash $-100.00 $-80.00 +09-Nov-01 November Expenses:Books $110.00 $30.00 + Assets:Cash $-110.00 $-80.00 +09-Nov-30 End of November Expenses:Books $110.00 $30.00 + Assets:Cash $-110.00 $-80.00 +09-Dec-01 December Expenses:Books $120.00 $40.00 + Assets:Cash $-120.00 $-80.00 +09-Dec-31 End of December Expenses:Books $120.00 $40.00 + Assets:Cash $-120.00 $-80.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-weekly.test b/test/baseline/opt-weekly.test new file mode 100644 index 00000000..fb900c74 --- /dev/null +++ b/test/baseline/opt-weekly.test @@ -0,0 +1,225 @@ +reg --weekly books +<<< +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 +07-Dec-30 - 08-Jan-05 Expenses:Books $10.00 $10.00 +08-Jan-27 - 08-Feb-02 Expenses:Books $30.00 $40.00 +08-Feb-24 - 08-Mar-01 Expenses:Books $50.00 $90.00 +08-Mar-30 - 08-Apr-05 Expenses:Books $70.00 $160.00 +08-Apr-27 - 08-May-03 Expenses:Books $90.00 $250.00 +08-May-25 - 08-May-31 Expenses:Books $50.00 $300.00 +08-Jun-01 - 08-Jun-07 Expenses:Books $60.00 $360.00 +08-Jun-29 - 08-Jul-05 Expenses:Books $130.00 $490.00 +08-Jul-27 - 08-Aug-02 Expenses:Books $150.00 $640.00 +08-Aug-31 - 08-Sep-06 Expenses:Books $170.00 $810.00 +08-Sep-28 - 08-Oct-04 Expenses:Books $190.00 $1000.00 +08-Oct-26 - 08-Nov-01 Expenses:Books $210.00 $1210.00 +08-Nov-30 - 08-Dec-06 Expenses:Books $230.00 $1440.00 +08-Dec-28 - 09-Jan-03 Expenses:Books $130.00 $1570.00 +09-Jan-25 - 09-Jan-31 Expenses:Books $10.00 $1580.00 +09-Feb-01 - 09-Feb-07 Expenses:Books $20.00 $1600.00 +09-Feb-22 - 09-Feb-28 Expenses:Books $20.00 $1620.00 +09-Mar-01 - 09-Mar-07 Expenses:Books $30.00 $1650.00 +09-Mar-29 - 09-Apr-04 Expenses:Books $70.00 $1720.00 +09-Apr-26 - 09-May-02 Expenses:Books $90.00 $1810.00 +09-May-31 - 09-Jun-06 Expenses:Books $110.00 $1920.00 +09-Jun-28 - 09-Jul-04 Expenses:Books $130.00 $2050.00 +09-Jul-26 - 09-Aug-01 Expenses:Books $150.00 $2200.00 +09-Aug-30 - 09-Sep-05 Expenses:Books $170.00 $2370.00 +09-Sep-27 - 09-Oct-03 Expenses:Books $190.00 $2560.00 +09-Oct-25 - 09-Oct-31 Expenses:Books $100.00 $2660.00 +09-Nov-01 - 09-Nov-07 Expenses:Books $110.00 $2770.00 +09-Nov-29 - 09-Dec-05 Expenses:Books $230.00 $3000.00 +09-Dec-27 - 10-Jan-02 Expenses:Books $120.00 $3120.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-wide.test b/test/baseline/opt-wide.test new file mode 100644 index 00000000..d9f43c11 --- /dev/null +++ b/test/baseline/opt-wide.test @@ -0,0 +1,11 @@ +reg --wide +<<< +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 Assets:Investments:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX + Income:Dividends:Vanguard:VMMXX $-0.35 $-0.35 + 0.350 VMMXX +>>>2 +=== 0 diff --git a/test/baseline/opt-yearly.test b/test/baseline/opt-yearly.test new file mode 100644 index 00000000..a8c73607 --- /dev/null +++ b/test/baseline/opt-yearly.test @@ -0,0 +1,198 @@ +reg --yearly books +<<< +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 - 08-Dec-31 Expenses:Books $1560.00 $1560.00 +09-Jan-01 - 09-Dec-31 Expenses:Books $1560.00 $3120.00 +>>>2 +=== 0 |