diff options
Diffstat (limited to 'test/baseline')
30 files changed, 2422 insertions, 2 deletions
diff --git a/test/baseline/feat-balance-assignments.test b/test/baseline/feat-balance-assignments.test new file mode 100644 index 00000000..74fe9ddb --- /dev/null +++ b/test/baseline/feat-balance-assignments.test @@ -0,0 +1,37 @@ +bal +<<< +2009/01/01 Entry + Assets:Cash $10,000.00 + Equity:Opening Balances + +2009/02/01 Entry + Expenses:Cash $100.00 + Assets:Cash + +2009/02/02 Entry + Expenses:Cash $100.00 + Assets:Cash + +2009/02/03 Entry + Expenses:Cash $100.00 + Assets:Cash $-100.00 = $9,700.00 + +2009/02/04 Entry + Expenses:Cash $100.00 + Assets:Cash $-100.00 = $9,600.00 + +2009/02/05 Entry + Expenses:Cash $100.00 + Assets:Cash + +2009/02/05 Entry + Expenses:Cash + Assets:Cash = ($4,000.00 + $100.00) +>>>1 + $4,100.00 Assets:Cash + $-10,000.00 Equity:Opening Balances + $5,900.00 Expenses:Cash +-------------------- + 0 +>>>2 +=== 0 diff --git a/test/baseline/feature-fixated-prices.test b/test/baseline/feat-fixated-prices.test index 11330dea..11330dea 100644 --- a/test/baseline/feature-fixated-prices.test +++ b/test/baseline/feat-fixated-prices.test diff --git a/test/baseline/opt-anon.test b/test/baseline/opt-anon.test index fb8acd64..f9244451 100644 --- a/test/baseline/opt-anon.test +++ b/test/baseline/opt-anon.test @@ -4,8 +4,8 @@ reg --anon Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 Income:Dividends:Vanguard:VMMXX $-0.35 >>>1 -07-Feb-02 6a93dcb30aa7722e967.. ..cfb2807d6a978b431fc7 0.350 VMMXX 0.350 VMMXX - ..4fbac0065bfcc300a24e $-0.35 $-0.35 +07-Feb-02 6a93dcb3 20:5d:27:988a9c3a 0.350 VMMXX 0.350 VMMXX + 1c:b6:27:988a9c3a $-0.35 $-0.35 0.350 VMMXX >>>2 === 0 diff --git a/test/baseline/opt-input-date-format.test b/test/baseline/opt-input-date-format.test new file mode 100644 index 00000000..0ab5e5c9 --- /dev/null +++ b/test/baseline/opt-input-date-format.test @@ -0,0 +1,11 @@ +reg --input-date-format='%m%%%d%%%Y' +<<< +02%02%2007 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-limit.test b/test/baseline/opt-limit.test new file mode 100644 index 00000000..dd302d1b --- /dev/null +++ b/test/baseline/opt-limit.test @@ -0,0 +1,212 @@ +reg --limit='account =~ /Books/ and amount < 50' +<<< +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 +09-Jan-01 January Expenses:Books $10.00 $210.00 +09-Jan-31 End of January Expenses:Books $10.00 $220.00 +09-Feb-01 February Expenses:Books $20.00 $240.00 +09-Feb-28 End of February Expenses:Books $20.00 $260.00 +09-Mar-01 March Expenses:Books $30.00 $290.00 +09-Mar-31 End of March Expenses:Books $30.00 $320.00 +09-Apr-01 April Expenses:Books $40.00 $360.00 +09-Apr-30 End of April Expenses:Books $40.00 $400.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-lot-tags.test b/test/baseline/opt-lot-tags.test new file mode 100644 index 00000000..d77aea33 --- /dev/null +++ b/test/baseline/opt-lot-tags.test @@ -0,0 +1,12 @@ +bal --lot-tags tajer +<<< +D 1.00c + +2006/03/14 Opening Balances + Assets:Tajer 1339829c (TAG) + Assets:Gruulmorg 248720c + Equity:Gold +>>>1 + 1339829.00c (TAG) Assets:Tajer +>>>2 +=== 0 diff --git a/test/baseline/opt-lots-actual.test b/test/baseline/opt-lots-actual.test new file mode 100644 index 00000000..39a27363 --- /dev/null +++ b/test/baseline/opt-lots-actual.test @@ -0,0 +1,27 @@ +reg --format '%(justify(scrub(total_expr), 40, 40, true))\n' --lots +<<< +D 1.0000s + +2006/03/14 Opening Balances + Assets:Tajer 1339829c @ 1.86590975416s + Assets:Gruulmorg 248720c {10.051463493s} + Equity:Gold -5000000s +>>>1 + 1339829c {1.8659s} [2006/03/14] + 1339829c {1.8659s} [2006/03/14] + 248720c {10.0515s} + 1339829c {1.8659s} [2006/03/14] + 248720c {10.0515s} + -1388.9h +>>>2 +=== 0 +reg --format '%(justify(scrub(total_expr), 40, 40, true))\n' --lots-actual +>>>1 + 1339829c + 1339829c + 248720c {10.0515s} + 1339829c + 248720c {10.0515s} + -1388.9h +>>>2 +=== 0 diff --git a/test/baseline/opt-only.test b/test/baseline/opt-only.test new file mode 100644 index 00000000..9728edae --- /dev/null +++ b/test/baseline/opt-only.test @@ -0,0 +1,236 @@ +reg books --monthly --limit='amount > $100' +<<< +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-Nov-01 - 08-Nov-30 Expenses:Books $220.00 $220.00 +08-Dec-01 - 08-Dec-31 Expenses:Books $240.00 $460.00 +09-Nov-01 - 09-Nov-30 Expenses:Books $220.00 $680.00 +09-Dec-01 - 09-Dec-31 Expenses:Books $240.00 $920.00 +>>>2 +=== 0 +reg books --monthly --only='amount > $100' +>>>1 +08-Jun-01 - 08-Jun-30 Expenses:Books $120.00 $120.00 +08-Jul-01 - 08-Jul-31 Expenses:Books $140.00 $260.00 +08-Aug-01 - 08-Aug-31 Expenses:Books $160.00 $420.00 +08-Sep-01 - 08-Sep-30 Expenses:Books $180.00 $600.00 +08-Oct-01 - 08-Oct-31 Expenses:Books $200.00 $800.00 +08-Nov-01 - 08-Nov-30 Expenses:Books $220.00 $1020.00 +08-Dec-01 - 08-Dec-31 Expenses:Books $240.00 $1260.00 +09-Jun-01 - 09-Jun-30 Expenses:Books $120.00 $1380.00 +09-Jul-01 - 09-Jul-31 Expenses:Books $140.00 $1520.00 +09-Aug-01 - 09-Aug-31 Expenses:Books $160.00 $1680.00 +09-Sep-01 - 09-Sep-30 Expenses:Books $180.00 $1860.00 +09-Oct-01 - 09-Oct-31 Expenses:Books $200.00 $2060.00 +09-Nov-01 - 09-Nov-30 Expenses:Books $220.00 $2280.00 +09-Dec-01 - 09-Dec-31 Expenses:Books $240.00 $2520.00 +>>>2 +=== 0 +reg books --monthly --display='amount > $100' +>>>1 +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-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-percent.test b/test/baseline/opt-percent.test new file mode 100644 index 00000000..1adb0a8a --- /dev/null +++ b/test/baseline/opt-percent.test @@ -0,0 +1,94 @@ +bal --percent +<<< +2008/01/11 LIAT + Expenses:Travel:Airfare $40.00 + Liabilities:MasterCard + +2008/01/14 cheaptickets.com + Expenses:Travel:Airfare $182.19 + Liabilities:MasterCard + +2008/02/05 CTX + Expenses:Travel:Auto $240.38 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/22 BUDGET RENT-A-CAR + Expenses:Travel:Auto $40.59 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/08/08 BCIS I-131 FILING FEE- + Expenses:Travel:Passport $170.00 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/22 AGNT FEE + Expenses:Travel:Airfare $70.00 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 LIAT 1974 LIMITED + Expenses:Travel:Airfare $418.34 + Liabilities:MasterCard + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking +>>>1 + 100.00% Assets:Checking + 100.00% Expenses:Travel + 92.15% Airfare + 3.13% Auto + 4.72% Passport + 100.00% Liabilities:MasterCard +>>>2 +=== 0 diff --git a/test/baseline/opt-period.test b/test/baseline/opt-period.test new file mode 100644 index 00000000..09e7e355 --- /dev/null +++ b/test/baseline/opt-period.test @@ -0,0 +1,290 @@ +reg -p "january 2008" +<<< +2008/01/01 January + Expenses:Books $10.00 + Liabilities:Cards $10.00 + Assets:Cash + +2008/01/31 End of January + Expenses:Books $10.00 + Liabilities:Cards $10.00 + Assets:Cash + +2008/02/01 February + Expenses:Books $20.00 + Liabilities:Cards $20.00 + Assets:Cash + +2008/02/28 End of February + Expenses:Books $20.00 + Liabilities:Cards $20.00 + Assets:Cash + +2008/03/01 March + Expenses:Books $30.00 + Liabilities:Cards $30.00 + Assets:Cash + +2008/03/31 End of March + Expenses:Books $30.00 + Liabilities:Cards $30.00 + Assets:Cash + +2008/04/01 April + Expenses:Books $40.00 + Liabilities:Cards $40.00 + Assets:Cash + +2008/04/30 End of April + Expenses:Books $40.00 + Liabilities:Cards $40.00 + Assets:Cash + +2008/05/01 May + Expenses:Books $50.00 + Liabilities:Cards $50.00 + Assets:Cash + +2008/05/31 End of May + Expenses:Books $50.00 + Liabilities:Cards $50.00 + Assets:Cash + +2008/06/01 June + Expenses:Books $60.00 + Liabilities:Cards $60.00 + Assets:Cash + +2008/06/30 End of June + Expenses:Books $60.00 + Liabilities:Cards $60.00 + Assets:Cash + +2008/07/01 July + Expenses:Books $70.00 + Liabilities:Cards $70.00 + Assets:Cash + +2008/07/31 End of July + Expenses:Books $70.00 + Liabilities:Cards $70.00 + Assets:Cash + +2008/08/01 August + Expenses:Books $80.00 + Liabilities:Cards $80.00 + Assets:Cash + +2008/08/31 End of August + Expenses:Books $80.00 + Liabilities:Cards $80.00 + Assets:Cash + +2008/09/01 September + Expenses:Books $90.00 + Liabilities:Cards $90.00 + Assets:Cash + +2008/09/30 End of September + Expenses:Books $90.00 + Liabilities:Cards $90.00 + Assets:Cash + +2008/10/01 October + Expenses:Books $100.00 + Liabilities:Cards $100.00 + Assets:Cash + +2008/10/31 End of October + Expenses:Books $100.00 + Liabilities:Cards $100.00 + Assets:Cash + +2008/11/01 November + Expenses:Books $110.00 + Liabilities:Cards $110.00 + Assets:Cash + +2008/11/30 End of November + Expenses:Books $110.00 + Liabilities:Cards $110.00 + Assets:Cash + +2008/12/01 December + Expenses:Books $120.00 + Liabilities:Cards $120.00 + Assets:Cash + +2008/12/31 End of December + Expenses:Books $120.00 + Liabilities:Cards $120.00 + Assets:Cash + +2009/01/01 January + Expenses:Books $10.00 + Liabilities:Cards $10.00 + Assets:Cash + +2009/01/31 End of January + Expenses:Books $10.00 + Liabilities:Cards $10.00 + Assets:Cash + +2009/02/01 February + Expenses:Books $20.00 + Liabilities:Cards $20.00 + Assets:Cash + +2009/02/28 End of February + Expenses:Books $20.00 + Liabilities:Cards $20.00 + Assets:Cash + +2009/03/01 March + Expenses:Books $30.00 + Liabilities:Cards $30.00 + Assets:Cash + +2009/03/31 End of March + Expenses:Books $30.00 + Liabilities:Cards $30.00 + Assets:Cash + +2009/04/01 April + Expenses:Books $40.00 + Liabilities:Cards $40.00 + Assets:Cash + +2009/04/30 End of April + Expenses:Books $40.00 + Liabilities:Cards $40.00 + Assets:Cash + +2009/05/01 May + Expenses:Books $50.00 + Liabilities:Cards $50.00 + Assets:Cash + +2009/05/31 End of May + Expenses:Books $50.00 + Liabilities:Cards $50.00 + Assets:Cash + +2009/06/01 June + Expenses:Books $60.00 + Liabilities:Cards $60.00 + Assets:Cash + +2009/06/30 End of June + Expenses:Books $60.00 + Liabilities:Cards $60.00 + Assets:Cash + +2009/07/01 July + Expenses:Books $70.00 + Liabilities:Cards $70.00 + Assets:Cash + +2009/07/31 End of July + Expenses:Books $70.00 + Liabilities:Cards $70.00 + Assets:Cash + +2009/08/01 August + Expenses:Books $80.00 + Liabilities:Cards $80.00 + Assets:Cash + +2009/08/31 End of August + Expenses:Books $80.00 + Liabilities:Cards $80.00 + Assets:Cash + +2009/09/01 September + Expenses:Books $90.00 + Liabilities:Cards $90.00 + Assets:Cash + +2009/09/30 End of September + Expenses:Books $90.00 + Liabilities:Cards $90.00 + Assets:Cash + +2009/10/01 October + Expenses:Books $100.00 + Liabilities:Cards $100.00 + Assets:Cash + +2009/10/31 End of October + Expenses:Books $100.00 + Liabilities:Cards $100.00 + Assets:Cash + +2009/11/01 November + Expenses:Books $110.00 + Liabilities:Cards $110.00 + Assets:Cash + +2009/11/30 End of November + Expenses:Books $110.00 + Liabilities:Cards $110.00 + Assets:Cash + +2009/12/01 December + Expenses:Books $120.00 + Liabilities:Cards $120.00 + Assets:Cash + +2009/12/31 End of December + Expenses:Books $120.00 + Liabilities:Cards $120.00 + Assets:Cash +>>>1 +08-Jan-01 January Expenses:Books $10.00 $10.00 + Liabilities:Cards $10.00 $20.00 + Assets:Cash $-20.00 0 +08-Jan-31 End of January Expenses:Books $10.00 $10.00 + Liabilities:Cards $10.00 $20.00 + Assets:Cash $-20.00 0 +>>>2 +=== 0 +reg -p "monthly january 2008" +>>>1 +08-Jan-01 - 08-Jan-31 Assets:Cash $-40.00 $-40.00 + Expenses:Books $20.00 $-20.00 + Liabilities:Cards $20.00 0 +>>>2 +=== 0 +reg -p "weekly january 2008" +>>>1 +08-Jan-01 - 08-Jan-05 Assets:Cash $-20.00 $-20.00 + Expenses:Books $10.00 $-10.00 + Liabilities:Cards $10.00 0 +08-Jan-29 - 08-Jan-31 Assets:Cash $-20.00 $-20.00 + Expenses:Books $10.00 $-10.00 + Liabilities:Cards $10.00 0 +>>>2 +=== 0 +reg -p "yearly 2008" +>>>1 +08-Jan-01 - 08-Dec-31 Assets:Cash $-3120.00 $-3120.00 + Expenses:Books $1560.00 $-1560.00 + Liabilities:Cards $1560.00 0 +>>>2 +=== 0 +reg -p "from 2009/11/01" +>>>1 +09-Nov-01 November Expenses:Books $110.00 $110.00 + Liabilities:Cards $110.00 $220.00 + Assets:Cash $-220.00 0 +09-Nov-30 End of November Expenses:Books $110.00 $110.00 + Liabilities:Cards $110.00 $220.00 + Assets:Cash $-220.00 0 +09-Dec-01 December Expenses:Books $120.00 $120.00 + Liabilities:Cards $120.00 $240.00 + Assets:Cash $-240.00 0 +09-Dec-31 End of December Expenses:Books $120.00 $120.00 + Liabilities:Cards $120.00 $240.00 + Assets:Cash $-240.00 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-plot-amount-format.test b/test/baseline/opt-plot-amount-format.test new file mode 100644 index 00000000..9c5484af --- /dev/null +++ b/test/baseline/opt-plot-amount-format.test @@ -0,0 +1,10 @@ +reg -j --plot-amount-format='X %(format_date(date, "%Y-%m-%d")) Y %(quantity(scrub(display_amount)))\n' +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +X 2007-02-02 Y 0.35 +X 2007-02-02 Y -0.35 +>>>2 +=== 0 diff --git a/test/baseline/opt-plot-total-format.test b/test/baseline/opt-plot-total-format.test new file mode 100644 index 00000000..1065c5ce --- /dev/null +++ b/test/baseline/opt-plot-total-format.test @@ -0,0 +1,10 @@ +reg -J --plot-total-format='X %(format_date(date, "%Y-%m-%d")) Y %(quantity(scrub(display_amount)))\n' +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +X 2007-02-02 Y 0.35 +X 2007-02-02 Y -0.35 +>>>2 +=== 0 diff --git a/test/baseline/opt-price.test b/test/baseline/opt-price.test new file mode 100644 index 00000000..06cc7751 --- /dev/null +++ b/test/baseline/opt-price.test @@ -0,0 +1,47 @@ +reg equities +<<< +2008/01/01 * Purchase Apple shares + Equities 1000 AAPL @ $2 + Cash $-2000 + +2008/06/30 * Sell some Apple shares + Cash $1250 + Equities -500 AAPL {$2} @ $2.50 + Income:Gains $-250 + +P 2008/10/01 02:18:02 AAPL $3 +P 2009/01/31 02:18:02 AAPL $4 +P 3000/01/01 02:18:02 APPL $100 +>>>1 +08-Jan-01 Purchase Apple shares Equities 1000 AAPL 1000 AAPL +08-Jun-30 Sell some Apple sha.. Equities -500 AAPL 500 AAPL +>>>2 +=== 0 +reg -B equities +>>>1 +08-Jan-01 Purchase Apple shares Equities $2000 $2000 +08-Jun-30 Sell some Apple sha.. Equities $-1250 $750 +>>>2 +=== 0 +reg --end 2009/06/26 -V equities +>>>1 +08-Jan-01 Purchase Apple shares Equities $2000 $2000 +08-Jun-30 Commodities revalued <Revalued> $500 $2500 +08-Jun-30 Sell some Apple sha.. Equities $-1250 $1250 +09-Jun-26 Commodities revalued <Revalued> $750 $2000 +>>>2 +=== 0 +reg --end 2009/06/26 -G equities +>>>1 +08-Jan-01 Purchase Apple shares Equities 0 0 +08-Jun-30 Commodities revalued <Revalued> $500 $500 +08-Jun-30 Sell some Apple sha.. Equities 0 $500 +09-Jun-26 Commodities revalued <Revalued> $750 $1250 +>>>2 +=== 0 +reg -I equities +>>>1 +08-Jan-01 Purchase Apple shares Equities $2000 $2000 +08-Jun-30 Sell some Apple sha.. Equities $-1000 $1000 +>>>2 +=== 0 diff --git a/test/baseline/opt-prices-format.test b/test/baseline/opt-prices-format.test new file mode 100644 index 00000000..ec93d9cd --- /dev/null +++ b/test/baseline/opt-prices-format.test @@ -0,0 +1,19 @@ +prices --prices-format='%(datetime) %(scrub(display_amount))\n' +<<< +P 2009/01/01 13:30:00 AAPL $10.00 +P 2009/01/01 14:30:00 AAPL $20.00 +P 2009/01/01 15:30:00 AAPL $30.00 +P 2009/01/01 16:30:00 AAPL $40.00 +P 2009/02/01 17:30:00 AAPL $50.00 + +2009/03/01 Purchase + Assets:Brokerage 100 AAPL + Income +>>>1 +09-Jan-01 13:30:00 $10.00 +09-Jan-01 14:30:00 $20.00 +09-Jan-01 15:30:00 $30.00 +09-Jan-01 16:30:00 $40.00 +09-Feb-01 17:30:00 $50.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-pricesdb-format.test b/test/baseline/opt-pricesdb-format.test new file mode 100644 index 00000000..28998903 --- /dev/null +++ b/test/baseline/opt-pricesdb-format.test @@ -0,0 +1,19 @@ +pricesdb --pricesdb-format='P %(date) %(scrub(display_amount))\n' +<<< +P 2009/01/01 13:30:00 AAPL $10.00 +P 2009/01/01 14:30:00 AAPL $20.00 +P 2009/01/01 15:30:00 AAPL $30.00 +P 2009/01/01 16:30:00 AAPL $40.00 +P 2009/02/01 17:30:00 AAPL $50.00 + +2009/03/01 Purchase + Assets:Brokerage 100 AAPL + Income +>>>1 +P 09-Jan-01 $10.00 +P 09-Jan-01 $20.00 +P 09-Jan-01 $30.00 +P 09-Jan-01 $40.00 +P 09-Feb-01 $50.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-print-format.test b/test/baseline/opt-print-format.test new file mode 100644 index 00000000..103ceb1e --- /dev/null +++ b/test/baseline/opt-print-format.test @@ -0,0 +1,10 @@ +print --print-format='%(amount)\n' +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +0.350 VMMXX {$1.00} [2007/02/02] +$-0.35 +>>>2 +=== 0 diff --git a/test/baseline/opt-quantity.test b/test/baseline/opt-quantity.test new file mode 100644 index 00000000..5de92e84 --- /dev/null +++ b/test/baseline/opt-quantity.test @@ -0,0 +1,11 @@ +reg --quantity +<<< +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-real.test b/test/baseline/opt-real.test new file mode 100644 index 00000000..b406f29a --- /dev/null +++ b/test/baseline/opt-real.test @@ -0,0 +1,11 @@ +reg --real +<<< +2008/01/01 January + Expenses:Books $10.00 + (Liabilities:Cards) $10.00 + Assets:Cash +>>>1 +08-Jan-01 January Expenses:Books $10.00 $10.00 + Assets:Cash $-10.00 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-register-format.test b/test/baseline/opt-register-format.test new file mode 100644 index 00000000..2384b6e2 --- /dev/null +++ b/test/baseline/opt-register-format.test @@ -0,0 +1,10 @@ +reg --register-format='%(amount)\n' +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +0.350 VMMXX {$1.00} [2007/02/02] +$-0.35 +>>>2 +=== 0 diff --git a/test/baseline/opt-related-all.test b/test/baseline/opt-related-all.test new file mode 100644 index 00000000..645f8a91 --- /dev/null +++ b/test/baseline/opt-related-all.test @@ -0,0 +1,14 @@ +reg --related-all credit +<<< +2009/06/18 This is a Test + Expenses:Food $20.00 + Expenses:Tips $2.00 + Expenses:Tax $3.00 + Liabilities:Credit +>>>1 +09-Jun-18 This is a Test Expenses:Food $20.00 $20.00 + Expenses:Tips $2.00 $22.00 + Expenses:Tax $3.00 $25.00 + Liabilities:Credit $-25.00 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-related.test b/test/baseline/opt-related.test new file mode 100644 index 00000000..576bc9d2 --- /dev/null +++ b/test/baseline/opt-related.test @@ -0,0 +1,13 @@ +reg --related credit +<<< +2009/06/18 This is a Test + Expenses:Food $20.00 + Expenses:Tips $2.00 + Expenses:Tax $3.00 + Liabilities:Credit +>>>1 +09-Jun-18 This is a Test Expenses:Food $20.00 $20.00 + Expenses:Tips $2.00 $22.00 + Expenses:Tax $3.00 $25.00 +>>>2 +=== 0 diff --git a/test/baseline/opt-seed.test b/test/baseline/opt-seed.test new file mode 100644 index 00000000..48ca7d13 --- /dev/null +++ b/test/baseline/opt-seed.test @@ -0,0 +1,432 @@ +generate --seed=10 +<<< +>>>1 +2186/12/04=1987/04/07 (gxB) Xcm0wJS7fGh07 + ; K93x8n5028OV19:n9zv0ksC + [MIdo:Y377U9xhRjxQaFFk37:aEaw66xn:9ss914] 411126pQ @ ozgYxo0.578679 + ; n1:1Bm38PMy6FO51R58pWhXmc1HN08Umw8T + (X:S) -936200r @ nijv235713 + ; j7zUn1U8UPStcn46 72dpS5vd9d2oxQk:R + C:27lps3E + +2186/12/09=1987/04/08 (B7xDea) yA6fOo:q0A6IaA7v ; LB:l + cro FhdXRF:nROGw1H8PqY10Jg 3FQRrcX07 -733399YmHWf @ 0.640803LMtLP ; dVmRkOR + [Z2t:31I:2ox:81NC28A0] 263844DKa ; h4I8M355 + B0VD1MI2073MblRrsPV64O9 EEMQ 816045 @ 0.499731hzxnl ; qAsYFCY + [b1X09LHz:AkK5G] U -785951 + ; gJy3hZ4g75vf84:9Rz R 6Vpy11ZJ:24K m U:Y + DI7 3 ; H64 + +2186/12/11=1987/04/12 ! (Xu:Eo) Cx4o2an 3Upa0Fll:nDjT461:y ; uzZ5uQlLWR4 + [XKU2Jj6:p6I5kVSPv 3vpG:ShyKRF:dv8y] Tgojw -14862.9 + [SPOiCDS5Zg:t:Q7vMF01n8P:7h1i] qXxf 437098 @ BmJ866903 + [reGXB0LK38iD5FM zWxl PUW:eI5F21EN80e] acLq947715 + (NA LA 11uhxP8y7oBBgXZQ45lwPb1) 14641.5sndK @ 44.2184885 Cw + ; P4158:i1xa1eoHUHeF1pS8 + [CMs:8Yz9t7H1aF3qN] qt250589 + (B0T) a-715047 @ 0.946357 Ac + ; PeUU8DYH3 BxS Uu9y:YfU0isX6ly:sZO6S2xpN + V:60vuV + +2186/12/12=1987/04/14 * (OEWOu) SLGS + ; AuFLS1XOW:z04:gwQ2 + (VjI Tm79d6) -93666.5xuIH ; A9 + [UF3xXu kOA ERwiQOh aprUp9gM] -103361jSZeo @ 564002 iJOXN + (EzJ 65T295) QCaR134452 @ RuLEEw 0.6292982 + ; M8916aJx5C7:G9U0I:y4t68 + W oUJuq66YfULC1 CW95nX2VZch2:qK992pM3fhy manJj -209990 @ c 536098 + ; yzOvW 28W99zgmW9Y9:j:5w:1:gIX + rNUT0rM:rBsW:P87ZVn3d8X + +2186/12/17=1987/04/15 * (F7u) sZ:c vZ8U3Sr705 + T2DT75mS9x7 W727197 @ 1.264289dfiel + (Z X9E8W16j8:521) zPFS-334854 + ; RkIZ27O30b8:yf0pXU + (jAmK) 426564AO @ SemS 421251 + ER lq6N3 q 3317.11 @ RAAii 254.77207569 + ixS + +2186/12/21 * (EVhm) fnA 7GRR710:8:FhSlZRc:4L5J74Q RnH9H4v ; N2 + (dGg77g:i40RE7J3KnxNNHB0E 7) 262042 z + ; N3V98V827I:qaJ2U4E5IR tpHJw0J699:f + M8:vCvoagZmVL1Y:543:eucH98:Q 222936 aZtSl @ 1.851056rQWi + ; Os2Z7rnOU11Y9vm8pGNvTuK + [KWybHT:s] Zc -395512 @ 673430 Q + ; JDK FpB 6g 5dBDa + [Tk:B1257JrD9:LgqbzmH8GQ] UaS-222545 ; uiM6 + u335Ic + +2186/12/27 ! (GS) EJ99iD7cHek7EJp5aoFYIXz2Wx:hTSIPWjP + [rRlyn:21:Jcu292Ea] YuOJ-77111.5 @ ys9.708928 + ; EI309:2D t66H6NzNv c AXmMzeF4:kR + [jn 58DWi8DwD48Ee3:05qkh38Y8754VMaC80OD] 205960LdQ @ iiB 2.206851 ; vTJ9I oLQ9KF1l + [zqBE2yO1UWmgM4BL:A9Do4EffRd8V:io] w-53161.6 @ 350764 UclkLw + g:R000qI3C 746879 juFf @ hlN448555 + ; x5:1OGWm WY9Fdtu:8rD09k1:5z 1:8Y:xQ11I + A43J7Yjx6xKhN0:TjP ; f:l8Q 1L7RjfBQ + +2186/12/29 * (R3:UJ) hN K3YTd:0y:42Ze9ObAaT lgx:yJ:ir1j ; xIIL05IE2p3 + [y jLigz uChQA Eg4UEf0 70B:94:i4DqcQq] iyg895724 @ 0.510892 mCiSp + w8C 7Hx8Rq91QS6z:7b -331711 vDTIl + U0987:F:4DTh6V F6 Rkp3p1 CTDATK-782095 + [kG7R6F:9jPxChWVOObKg045AE80hc87FW] 252408ViNkjs + jHM I5:Y + +2187/01/02=1987/04/20 (oCi) coD:3Y1ZEF79r:C086 + ; q:Gk:331:S9 o:0CREm + (bML5K:jl7ntsH213:Q:1BjWS8Lrqp:3 qSg2 93) SgXoC 338602 + [mr7R wS405TMYlnq7:Jx:e7:Qv8uElrM01Ww] 596325 IEVnen + ; V220WkzjO p:eVRrzBl473Nht:26U + o1h:E + ; n:34:ThQmLaTUfgbrNm:71p1C9 + +2187/01/03=1987/04/24 * (e) S:8O8F8P4672h6 ; UEJwkn + (iA:R70:9:Wzp4x:v9skm) SXV 822239 + o6Vo3X:HmQ:8s94RFZ8:fbxJYY2:xy6 wE 129507 @ 7.102689 hq + ; T:Dr0SwdlwU:3gn49 + TDM8vS3 4:l497yk2f2 d307311 @ 0.344104 xOqmt + ; hrZn9 5BaTBOkT16 y:65f848liI558:f9 + ADHTI7b:417f9NC p:81Dn:dd:2t58QPvkr6 280677 ewaJgw @ OhuZ248193 ; US178U5:E2P + JvY8mjt0 p1F ; Er nO + +2187/01/09 (u) I55B7BN7Nic0Xf7l:enK6:wZEp + [u7n1K7hy3kMKbPG hL] pIYM -959467 + [Xe3P2P:oUoMA1slU09R] -544505SfH @ 852228 OkXknF + ; z uE9:xQ53Sy0 s3p53voVFV:bOP2mL9K4hBf:24 + YJ5N:el1lEP1rksmQ4af8vXzlix:87 oXtoLV-494724 + [f28 6:EG5sn 6clN E:689EhZ6rljIS9A05HB] -592178TcaIqX @ 0.52632KqgxJY + oiMz51lFxbnN + +2187/01/10 * (f:YKS) b152q + ; l0728x5Ep97f405oy5sTr4j + (X2l:yjc3P5Jf0R8slv7fn:DWa0HB63yUBY) -637008UW + b -526513qGuvC + (P9QJnILJLlK20j9) VJx -237745 + ; H0:S1m6o:kpqGBmr0jn4yGp0PPx63680Bo + [JpVMi82HvZ8Cjn8R] jVSSg-913619 @ 0.808966 yoc + ; jYk3X58298IFBV7M TH3WN4n l0:x73agt4z + (HU 0M:e3A:030XdN3:8g) 243401kRXr @ eW 346761 + ; V6tnx1GMt6B0iT5DL9 + Eh EjQL:5Rj:68NZ42kd 16djH k883779 @ 652143 KQK + hlxM319I2412y + +2187/01/14 (p7NK) i56 + (E0V bMA) -901145n + ; I0G5G9axvs32G0R19D72Nj + c:6q9 dM:73:5Nc1p5g:c0 q -764271.00 @ 0.310259Pwv + [Nf2:jSoF:X79mOgTa:t4 CC8903Ug 0cf Gv4w] -345268RzzzmL @ e 1.692647 + ; R:KT0Y:WIkiD3UB2Fu6:CK5X6G6K1 + (d) PDGe 828999 + ; iFk6G5XkFII6739 31Dq2Qde25a:vfvRL0 + NDODeT1ud913r9L:s7JDMkkGwNHEoac ; FyMDFsNG + +2187/01/20=1987/04/29 ! (uvZ) C79:n5SB4r + OV35363j:REM:JjkW -996837ufeCSQ @ 0.47472dq ; EqA:SE2QJpd20a + [JTaWorK:018RpRg1y23Eh2FzS:o84BimcBP] 644258 VmNxi + uh:l8fPO05YCYi053 + +2187/01/23 * (M) p4yw23Z7z708H2t 1d108W509F XtQHd + ; JrdATcORmZ7F4:RilGAo4nPERSla K8:q319 + (pgNXjW:7:w c6434RmZg9x39A QgUoDd8NZ) SUO 203170 + [ob] DHAra-72498.6 @ 2.7968954yeCD + ; xTxkz:Qo:27 6146k0 + [o:1wP7Q2] 77384 dQolH @ 492890 l ; H:d6 Yu + [vhjm6FF] -597065 iBP @ brzs0.0717997 + B1V:H4agb9:aLP9235e2b + +2187/01/29 (KQhu) Q7x65f8ls25W88oyPR1H56I + (lX 0:3ZQ8e:f:We0b4lAUvFl7lf5x208) 383456kQrwsT + ; wa0f6v8ZJ7:on7T + [She:qWK1Qaijt7B5ua0] kniumo499909 + ; Z:CP:A5hK5uN4JI7FMqS3V:vyVS2 + [Y68R:A5N] 798458a + ; x:26gTlXF1:7:R6BMewcn:H:N8UXE + (QfdF:4GLhMy) b-547602 + ; b aPGwAfp Qx:m952ctx495 + [utb8nOU0r9N] mLHbE223101 + A6f1R:zEq0Vea3gsKnC9:06 a224 ZmNQ 774115 @ 892757 OQv + ; X6g:0Ka:8E735uVV + W6zw11QYbiE3awi1d A + ; pXFvBnAu8E77qcw:ZUlwkWV5lZ:VkC3:5gZyaERW + +2187/02/01=1987/05/01 ! (wv5i) f6n2pmhOP77oyv6:IG5j0TEk9v5pXP9810s + V 5w Po:lVghM1g4t3BXKy B B:1Zz gT -123047 + S3j:Aj4s 791849I + [B9:WfB9KIt4vLU51:Jm99I6Q125dMRIqx66vC5z2] 242497 A @ 583994 uXRfdk ; p5H8:j:o:fES + lS7d:q -106717 iefO + sj + +2187/02/04 (s) Z1yWLuX5yE4h:xT0X0Ga:o7:8T:0BbAvP46 + ; X79u5:K mYCw9Utl + (uE:h:1jzdLirp r gP5Z:AF:79I) -711627oRDqJP @ CLpS1.184335 ; DUx7WX5j4nX + [t2xBfs53KgY vP:XxCk2bmJC92 3Sx5U4] 313034 GINL + ; lLpf64qmRAVY7J943jaE:c:l 4570l4:P + u8 84Cpd e3 + ; g a m05HNW45pto sn0pJPv0U9r5bfT + +2187/02/07 (aj:5) X7rkc3PjvxTL l + V8aoGZ8p IL 50587.5vBeRJ + M6Ai3R:Q 325120 O + J5EUo35CK:qrg4E:V RznCQB3:q8MX1tX0CDyp 975643CDIcM @ 855572Twu ; bf5 A + [TM5Z] 913463 oimIl + YI8S9:X:C6zA 75 + +2187/02/08=1987/05/03 (u5N2W) X2Lbql6n O:z2U1WB0 iDB8N0:4O286Be4h5q5 + [q95j7F] Z -886734 @ 931353 bNt ; u0G KuFLh nq68 + (Y:3LOBz1:S:nA7B) wwL-880685 @ 960618G + X9:gud7uR5Qxth7:f1Q0 + ; F2lUncNAoUU4hWY DVe + +2187/02/10 * (E) n07K0X69w9Lm5n:Kas2ErCM6l4 48cR18Y:SnV + [R Cv H:6SpHO6:l63Gq:20JXImfc] -667443 y ; Kv + [mI9ZfM02qNaD8] 668500 RYSLl @ ddu0.19124 + d:BPcI1lYVW9CcA6yL:4lhaK6ID717 + ; N8Ix1H95urPX pLL5m:vz1mg:e A8 + +2187/02/13=1987/05/05 ! (c) Bb7b10:fG8C 6 6Wx1l + [Ef] -85775.1dN @ 315212ejCU + (wLjq:0601Iqx:96 HF) 658188HKt + suu2OqWMY6sJFv:xm:Tx -638358 jnDT + [g:9S f8OoiA87l0I4Kqx3] -601167p @ 43014.8 aLq + ; S:2T:i:IzbT:bNP5snh:2Pk:5nu + lN 8U973P3983pe32X:A:219N:1 + ; W:0 BO yy8:w8evC7YmboP ghx2:J9Xo + +2187/02/18 * (AN) oUwsLl:0Mm6p66d4leuup0:2x + ; c 5kp7U8G1k4:3qemxEP9IIYN8YUxA:8I9q + ysc8Prp:BAO3:NmJPIpZli -863446K @ VQ568439 ; tA6 + (I 4u8PI1L81v:aOP1QE74d 1DDZBY e7) Xl -571100 + ; C3SV V0zIpW0K6O:Uy1d:Q7dvwz:o5B EQ Nh + (L bD:5l2K650y8i9Ja) d-942453 + ; FjCMw2cXC3T5S1 P7d:d:O63BwR6O + (qYLNQ:ApC) P -371484 @ WLbB 716482 + ; LkfG:wU7kt 6Ayo9H9 ho + (AH7Z266:lo9126ooP:ok6IqMf0) -695058SXInq @ Abz 913865 + ; Lqh76O:sSk3Y9zRR + [f:z:n2:bO7fwc230R:2Y7fjX9Yqq:649] RkqnLo 249887 @ vTD 1.7248 + IW0M187 Ub + ; u4h0r2cSYS1kHW 9j6FyRk1y + +2187/02/20=1987/05/06 (W95) k + [TDrC8nTiD:r4Dx9177sQJvd16Ed9SvU mrE81:oD] bipfJi -629380 + [cD2:Hy:DV6zL a647Aq7Pp71gTruf:0] BzPmpg 612835 + ; W3FiFcDe53HIm789:kQN + (nP6CPmJd9g7jS72M 41q:t V5ltrdUx169Zu28) 975397 shihH + qT7c6 -655081 BXPPc @ Ya 872226 ; yIX7OGx + (mQSZ) 426510 zcBER @ tsnr606449 ; cJS:z12J4QvOA + [Yjfk:FmxjrVAa278WBuv5:50eG7w] Xake56556.8 + uM61VJYWHmmS2swhTs1624firiH7MjO5Z5 M0Y + +2187/02/23=1987/05/08 ! (R) Dg8:279q:90GKH7:pq3WN kXi:C:4qf76 + ; NlnAoFwM C7d3KH8A:6:lHr o8kxh6N130jo:kJ + VI6YZ -597872tIjW + (e:81C4:oO swE5f 9l:d9) wUna-360797 ; mJ y8mI + (a2y 6:iZLCdeW t10vqB7n3YN:7) 272995 NcKRN + ; taqP:G6i 8ePbU7GD59:r6iS + E46j:t7f50rjzczn -420867In + (qfK1A qE9SAMwwY:RbfPDS) lAcJ136457 ; AJ7hu5lhG2Q + m9GnlWF:P 2e6300i0o:K 930528Om @ 127927Rq + ; YN86XuS17Ax6fBYw8:FZB + v89c7V90x898JVnHFV:i28l3mMf1xTU:Bo7iJ2d ; YHqY + +2187/02/24=1987/05/12 * (t87o) mjrM4MyN8oKdpS4s + ; dh4gFZgBk5z29g2F44zT5I9g58Xpo:AYe9u3 + (uQI843zXpD9vK6l2dc93) VDZfau695674 @ 1.395381tJ + A:UT:2t 4BPcec8xuFg Qb2sRg79Wt -715837BWwCJu + i uRN1hvI8 + ; Yh 2:snU9F5u0Q7:eT507nI3mN oSE8MkeZ0kPnF + +2187/03/02 (JaP) M:j9:DzCYyd:M V6 ; YCd5tl8gTY7r + KWu6Q vju54Wqg:Hajy3K5 699037PsAu @ 0.0432019 dmmsRU + gm:9:Uf:t:jZCaY8ZoPqd UB:qjC5OtR v2y -65372.2DRpj @ aPXbpG0.66845387 + ; HOntIQNDiUq2h7O88 + Lq6 + ; hB1 YKJgE pnE0a + +2187/03/08=1987/05/16 (fVUT) GB0y15 ; gw8ge764c35f + [fgY:5j4fG6:uBT] 994884 IuSb + [Qv84kw0f1cxt8MBl] -314694 SKN @ uIGy0.488405 + ; S x865af7EOVbh09z1C:atG + C:aOmIU 6quv27:L8:fO0X61IFuzPKm + ; cU95Tz:wN9F99u2C:7QW2R6QdK:y:5Lcdf + +2187/03/11=1987/05/18 * (Q2P) kOT0:08TY + r19iHviTP MQmbBklzoe5Zy:8T4 -701612X @ 1.347401 dhCZ + j8hn 8a:zJvx -950080X ; X6V4:Vrz7:A9 + ChMhD kwW2Drf8oW4 m23b6 rg17K cc + +2187/03/16 * (tZ) U C44:BGa4J6Bzwwb4o + [YK49QGHo:U167ZuH:Sus] -653997 r @ 990828 WsMH + ; YY7Vl4m0y6h:97Eb:t:WZ38 + [rkd6eQ QnFRO4Eap1:o24ze7 MJta:5Lmw8y1] 713018 dOybc @ 867696 pqosoj + L rGB fhmmAj41N:75MlS:HI02Dhtvv92:9 + +2187/03/19=1987/05/20 * (C) x4MFm08t8:Rv484 + ; pteIOL8G3L7K:PiF:ed01NaE:5 + jLXaJ7:TPkx:hnc0a84T949V -337155Pt + [z Cimq6yQ5 6Hz:4:y j3pTBDWr:Xwi5xa4fT0] egJUlL927254 @ ETLYp 830216 + ; i5s0qZi5:it:qv1g 35vrb4GY:4y5 + (aGO8o973:8:DqP588) cReiuY -813613 @ ZVwoPf 932860 + [iG0OQ:tWl:Y:F59 R09pKiI] 499724 y @ qwy 1.437329 + ; bNO myx5K3DhtxI0gZGc4eWCtZ:Nsb:l7Yx 3v + [OT2sQn:78mn:6dC6k2BPLg8Xu:1NV8GHg6cq9d] yFpTo -290498 @ PdADxe 2.729485 + W2C:PzB:a7iA:VHeXq7gYKI vM2611:bCoq aHgK 381854 @ 721958RKv + pPYXx2wrFvMC:94zr3C9T1TdhR6D4 + +2187/03/25 * (R) Z6et66o5F44:HG74D5gdk9 + ; I8k7lSGq5223eFvFeSX4B20O + EiOxe -49170.3ptFX @ WYtmyT 781596 + [cn U0zGj:Ylm2R:4a Sy] pxLB-155187 + x:yw8duO9Ic:4CqN:AUa xd + +2187/03/27 * (tg) VirzaV9213J8:jkhY7b + (Kk:22T6893q129HLfMQ9QZf K66Kc:1 Qu:51Ki) hEP288640 @ 1.734694 ES + [yP7cI1x:Ns7Ik:CF 8W:2r:tT8r:ND3K4naIL] vnCq-270931 @ 368422 Qum + [OkJ:WvF64D87M22b58xgnAS2yf85] -542640 eM + [P U] 602501 oUB + c32Ww93:Z:mj7BK + +2187/03/28=1987/05/21 ! (kIWM) lz L5 + (HoA7y0U4v4R458U80K0wqj4V8L:3Hy hK:u2o) baf 692841 + (tX) -864521 x @ Vy0.360209 ; Wxe043p9:061 + (Lq:5g7L:wwv:HyHFPCZYy) MYpd631128 @ 508656Cz + (x5 79ER 2Z3I0U19 47VfLtNKOq:2X) -696823bSC ; a8:Ad6LdI + +2187/03/29=1987/05/24 * (O) E0Rfh34 + t4FdLx3:l:Ck6m3VJ stAj-908528 + ; vQ8h:OiGS:f7CG 5 Y7fBz d10 + z 2936srygkDWhn1c4jyG:L:nHpTrnLB51 vG75178.3 + ; UfL7dG5a87Mm430vKtQ4Z:M2sdMzh3:a + [bdA:M:AM9FCXQm6HMGIB7 Lz:YV4tm3:r:SN] 38780.8HvaL @ HamR 19.0182771 + ; z4KY C:Q:3h2 X 7 + (R:n9:lXU) YTx-417744 @ 1.230378 D + [DLs 9 mtV 1G:b:Bep yVU n93Hbd:8By2Mx:M] -48707.2 a + [R:Goz1E0Bj:blF5Hl] -298794rPVm @ 3.283965 bUoyr + ; KYa8M9:6482B650mXUE7b:Ka + w8NK7U54q7vHGU0l30t:Il:3P:U T:SfY0 + +2187/04/01=1987/05/26 ! (Eq) M59Ml:3 + K ASPeZQ:7LW:wzN2QaUr77OXr wS-848544 @ Exd 0.625834 + (tX0 1Uhq2Q969Z5x07I4B:8:n2t4T4V:E:6K) rQem -637441 ; ErSB:G0z + RqXG2 IZT646tE30:n84Y fEt-767950 @ 0.594623 Hkqq + ; pw3k2j 4KT D3Uo:B27e:WKDiuOD43L + [C3] BheR-157970 + (A8p:062sBPYe8e:6oK:n 8X:87Qn) 982770 uVsEo + ; oHE U:F7z1f1b8mTv:s 2KwNo7 WgI + [D20EU:1] Sppd 837068 + Bdn0znI799:07:s60 M5099z7 + ; dEGfxH:U8p6z8DBSZ:diiQ49H21 6 + +2187/04/04 * (M80a) Z:k206 + [x7:anc] 437316 Dqk @ eZCzj 0.285032 + [hC705 NtL:iP:q3608P93d7P:GdE] 544670li + ; oy:4zAY3upE31j0VUKCo95b84:O9E5d365E:4 + ysN:P:56bd43Z:v:krkEyf R y287D + ; eZ U0AU4:MSGD:jjK7O94rD3webUWW1:4r0:07 + +2187/04/07 (vvA) wc05O32W:H34:Y990 + jBCX1J524A63U1k1j98823 2PYK886n 391730qA + tf50 ptOxzto:d6O0ye:cg8MIIR9C3ZlTRQ1 nx920305 @ 1.019439 MyVL + (UaTIt08Xl47:98zv83X92k3Ap) nlfkS 154433 + (j3M44pR2dc4J:rTP7oN 2kO5 GOp:2zo8I) PXO-126823 + ; yM21414i0eV2HAu50r61:5WN:2ApRhE:sM:ic + Xs551d 14OR5:j:5:u + ; psjmtc 57 BvF44CTmU7BXYna9w:2e58Wk5dV + +2187/04/12 * (Rh2) xe:4694A4vNXtTO:BRdX4n:U:6gLXW4atziLPi + h:E31A:6lSbJKE181aNzg2l2s1q -158224QX @ dKAD 4.682267 + (pfitL560:H:rL2O7L) 976398 wMZ @ t486509 + Motxoa 3u1 D 58373.9 V @ 3.1142171 a + ; tnBH6o 757IL 3:bche8 5 V:6 F29 + [U 76 7PO6E2M6fJ47pk3no K1KI6r] 690776 cL + ; Tz1W zMl:6r0Sr67wwiv6mHI1:UMowDl + (A:4s97lX2ZJg5XL:JASmf:H) wTEdPr 126890 + ; E8N231t1v62wd53wZ3S7ZJ + [MkN6f0006:53MX36298W vL2Rr] 131653voz + i:Y82PTu8o0RsU5c393 ; m09zvwT873z02 + +2187/04/16 * (O) g09nmf1f ; fiQ T4D2:E + pNwv4w va614303 @ BfEt776882 + [z 8M3qc:0W6 323:7 HE46vE5goXpC4C] GZatQD349279 ; c79 + N6Ny7D0NikU2Qzy:W:N4M:94F7D:C zua3Gr ol-473902 @ TiG1.58947 + ; USUm8 I01T7:rL9xC4H6QaI1fI4zg4iw9D9D94NY + iK9PGH2Lr:5xL 11077X ; WiNki + QxGAnH:0i1:5:hpK1454yx + +2187/04/18=1987/05/27 (d6 76) WKycS8BB4k2pWB6U1 TqC799Q3Q:Q:uvDbP v + ; S1 H:53Fz:Z9RY7660oS2:iEzlx8zId1KHlAp13 + WAIZL7YC8T6xsxb C lEBkQZcC6ZYX8oUdjs aBsqCO-859192 ; X + (dVeDho1zLvBM1:bc2907v rw6w:fIyj) rJO-348003 @ 0.5828lNOAP + [VYR86aOPCBtU:T43s31qNrcmX55] 148376Kaqj + ; Hb5Mz2T33FTGp:6mf92L1 + g0P FOnuBD634440 + Eu2590k:6 542890 YbTkPd + ; MG7:fX1QN7F:aBWcZ WK:miVS9IS4 + TXhdCnW:q3 83Q0:A:TLa:P1 389207Qu @ ZxD 474844 + ; ze Xr:DiUmY4O5a494 E 7C jd9f:y + ej:OV1p + ; UQIvt cFi75q3l7:33q9V4epmq1c3o:MQY9:4 + +2187/04/19=1987/05/29 * (yIEGx) vtu yZ:FLNg8 bz81244o 1 + [eQ0:vQFftKq312 5:qt4OJRF14:8iUS9] -514867H + [zS4kj:1U364n 77yT4heLR0WCtP:J:qpTVC] C 626719 + ; k61HYqVgh4pw4PSJ:8Zd5c0LvKhEqop + hQu J5:iL7i:dlczgv5 aUXZ:SW20:d + ; B6CQoX:m7:T0DObHKf:c35E tVQg:6N7 XR0yk1F + +2187/04/25 (d5) mO3V65tcQ93f:bpH2O4KQc7i8A3ubo64L + [cY8j:X:D1g53O] 913440 AkznZ + ; qiWp0:1K:9:yoagiids8YU8GazTJnDZyJMuJjU + [h 6v3:GS9 8] w 909579.0 @ 0.439321 a + QpWryY4 + +2187/04/26 * (Oa X8v) nTu ; Blnf + RcSi7T4:bA87Zk v1a6Bue2RiF3Q:1vHkrC Yd-594954 @ 379530 uXzDxT + (jlB2E47ka6U7mwZ3Tp:56wE:w Gr5pco7WO) MJ -210135 + (HrjMwB92A2:4:bnLz1hf5EAIx8wo71 AnSM83) PzifkG-18466.2 @ 532525.0 a + a E913Z48r PEZ930954 @ TWN0.26211 + K4:3w6:okgb7jHi3He7DMv:h6N:W15Go9 ; OLa p:p6ITR + +2187/04/28 ! (eq) I87a 1T 0f95 + (wD) ZGCAmF-128472 + ; h6161Ck29nuU0N764bi 4g:0W + (Ri:q26Y9xE ubzMbbB672:pM0:QA) 68525.6QBwZl @ 750604 joWS + +2187/04/30=1987/06/03 ! (B) tv2:A:T22kI16n5J6mbHh:qZj:E:86 + (ktL4z m2B5cKS4m53CgD:MnTTq584P8:6) 655291 eOEUll @ 594372OkUXd ; upZep79v + (bYT3j0yJy8fIq:2O48R70YV5T34) -498403 RaGA @ 1.611509AfRXi + G:2XSwTH3:WI7Y8:H:Kk 134595OIIOE + ; p:38 jzL2NZhQjy5fIB0S:ixVU0 + [BTLZ Y7Kd8W:mo6rR] -142806 ZUSM @ iV629749 + ; VRFPZ40e:B8vMk8VYpyaxYT T1f1jY8qHg69LxTr + (QzQvt5:a) 863612 C + ; UW7ldN1R6:JV79EzO9I5nkQKqXNx + (K0jG1Nn6xW6qmGoK852Wm82P891w O) w -639451.0 + ; b2ERs49v6Ri734X01 + STI0MT + ; kpM7x:a6:n61Z1k7 uY4ABsJ93 + +2187/05/06=1987/06/07 ! (DWS3) G Z r2r iYLKfxR7:vrl9vr707P6pb 94XSd + HC5FR0S vxXRGK -142673 @ xAV 605535 + [Fy1:u15syG 8:8C 38vB:178ExtQk5eBMq7F:blU] -130770oz + QvJZ:t xw:N + +2187/05/09 * (nKVz6) a9:T7 + ; eT75RyW4Xd8a f1a679UnNi SH065V KnOo9 + l7liL:4Qnz07kFUQ 800903 emTA @ 976479MTcm + (a:d) -761443Ay @ 0.576885 TDa + i + +2187/05/12=1987/06/09 ! (G3CN) nm r5 + (rsiBbx8T EXY5) 386928 flTii @ 2.000225 DE + HQg3:FK1EgO -941250jElq ; Yn6gjO + C42Y z:mOpuX:f:nnk:tx + +2187/05/13 * (r6e y0) V65by ; Z X8Whns + [h96nQFF32fyO8y] 968994 UBNDg + ; T72YEmnsvcmFX91DLNMg w2948464 + [Qwk40WBS0:N2V WUW:BM7M4:09961G0] 130897QkeP @ 719156 E + l5C402g:8ym9I0T1id zl7:sa811F1q vbUv:8Q + ; t5AnGg88R45W:S161kRC0o +>>>2 +=== 0 diff --git a/test/baseline/opt-sort-all.test b/test/baseline/opt-sort-all.test new file mode 100644 index 00000000..b289f8e8 --- /dev/null +++ b/test/baseline/opt-sort-all.test @@ -0,0 +1,122 @@ +reg --monthly --sort=-amount +<<< +2008/01/11 LIAT + Expenses:Travel:Airfare $40.00 + Liabilities:MasterCard + +2008/01/14 cheaptickets.com + Expenses:Travel:Airfare $182.19 + Liabilities:MasterCard + +2008/02/05 CTX + Expenses:Travel:Auto $240.38 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/22 BUDGET RENT-A-CAR + Expenses:Travel:Auto $40.59 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/08/08 BCIS I-131 FILING FEE- + Expenses:Travel:Passport $170.00 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/22 AGNT FEE + Expenses:Travel:Airfare $70.00 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 LIAT 1974 LIMITED + Expenses:Travel:Airfare $418.34 + Liabilities:MasterCard + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking +>>>1 +08-Jan-01 - 08-Jan-31 Ex:Travel:Airfare $222.19 $222.19 + Liabilities:MasterCard $-222.19 0 +08-Feb-01 - 08-Feb-29 Ex:Travel:Airfare $477.60 $477.60 + Expenses:Travel:Auto $280.97 $758.57 + Liabilities:MasterCard $-758.57 0 +08-Mar-01 - 08-Mar-31 Ex:Travel:Airfare $2,463.20 $2,463.20 + Liabilities:MasterCard $-2,463.20 0 +08-Apr-01 - 08-Apr-30 Ex:Travel:Airfare $1,186.14 $1,186.14 + Liabilities:MasterCard $-1,186.14 0 +08-Aug-01 - 08-Aug-31 Ex:Travel:Passport $170.00 $170.00 + Liabilities:MasterCard $-170.00 0 +08-Sep-01 - 08-Sep-30 Ex:Travel:Airfare $3,925.94 $3,925.94 + Liabilities:MasterCard $-3,925.94 0 +08-Dec-01 - 08-Dec-31 Ex:Travel:Passport $254.00 $254.00 + Assets:Checking $-254.00 0 +>>>2 +=== 0 +reg --monthly --sort-all=-amount +>>>1 +08-Sep-01 - 08-Sep-30 Ex:Travel:Airfare $3,925.94 $3,925.94 +08-Mar-01 - 08-Mar-31 Ex:Travel:Airfare $2,463.20 $6,389.14 +08-Apr-01 - 08-Apr-30 Ex:Travel:Airfare $1,186.14 $7,575.28 +08-Feb-01 - 08-Feb-29 Ex:Travel:Airfare $477.60 $8,052.88 + Expenses:Travel:Auto $280.97 $8,333.85 +08-Dec-01 - 08-Dec-31 Ex:Travel:Passport $254.00 $8,587.85 +08-Jan-01 - 08-Jan-31 Ex:Travel:Airfare $222.19 $8,810.04 +08-Aug-01 - 08-Aug-31 Ex:Travel:Passport $170.00 $8,980.04 + Liabilities:MasterCard $-170.00 $8,810.04 +08-Jan-01 - 08-Jan-31 Liabilities:MasterCard $-222.19 $8,587.85 +08-Dec-01 - 08-Dec-31 Assets:Checking $-254.00 $8,333.85 +08-Feb-01 - 08-Feb-29 Liabilities:MasterCard $-758.57 $7,575.28 +08-Apr-01 - 08-Apr-30 Liabilities:MasterCard $-1,186.14 $6,389.14 +08-Mar-01 - 08-Mar-31 Liabilities:MasterCard $-2,463.20 $3,925.94 +08-Sep-01 - 08-Sep-30 Liabilities:MasterCard $-3,925.94 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-sort-xacts.test b/test/baseline/opt-sort-xacts.test new file mode 100644 index 00000000..4882e18f --- /dev/null +++ b/test/baseline/opt-sort-xacts.test @@ -0,0 +1,176 @@ +reg --sort=account +<<< +2008/01/11 LIAT + Expenses:Travel:Airfare $40.00 + Liabilities:MasterCard + +2008/01/14 cheaptickets.com + Expenses:Travel:Airfare $182.19 + Liabilities:MasterCard + +2008/02/05 CTX + Expenses:Travel:Auto $240.38 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/22 BUDGET RENT-A-CAR + Expenses:Travel:Auto $40.59 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/08/08 BCIS I-131 FILING FEE- + Expenses:Travel:Passport $170.00 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/22 AGNT FEE + Expenses:Travel:Airfare $70.00 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 LIAT 1974 LIMITED + Expenses:Travel:Airfare $418.34 + Liabilities:MasterCard + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking +>>>1 +08-Dec-26 U.S. Department of .. Assets:Checking $-127.00 $-127.00 +08-Dec-26 U.S. Department of .. Assets:Checking $-127.00 $-254.00 +08-Jan-11 LIAT Ex:Travel:Airfare $40.00 $-214.00 +08-Jan-14 cheaptickets.com Ex:Travel:Airfare $182.19 $-31.81 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $206.99 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $445.79 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $1,677.39 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $2,908.99 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,064.85 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,220.71 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $3,657.92 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $4,095.13 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $5,007.73 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $5,920.33 +08-Sep-22 AGNT FEE Ex:Travel:Airfare $70.00 $5,990.33 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $6,796.53 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $7,602.73 +08-Sep-22 LIAT 1974 LIMITED Ex:Travel:Airfare $418.34 $8,021.07 +08-Feb-05 CTX Expenses:Travel:Auto $240.38 $8,261.45 +08-Feb-22 BUDGET RENT-A-CAR Expenses:Travel:Auto $40.59 $8,302.04 +08-Aug-08 BCIS I-131 FILING F.. Ex:Travel:Passport $170.00 $8,472.04 +08-Dec-26 U.S. Department of .. Ex:Travel:Passport $127.00 $8,599.04 +08-Dec-26 U.S. Department of .. Ex:Travel:Passport $127.00 $8,726.04 +08-Jan-11 LIAT Liabilities:MasterCard $-40.00 $8,686.04 +08-Jan-14 cheaptickets.com Liabilities:MasterCard $-182.19 $8,503.85 +08-Feb-05 CTX Liabilities:MasterCard $-240.38 $8,263.47 +08-Feb-05 UNITED Liabilities:MasterCard $-238.80 $8,024.67 +08-Feb-05 UNITED Liabilities:MasterCard $-238.80 $7,785.87 +08-Feb-22 BUDGET RENT-A-CAR Liabilities:MasterCard $-40.59 $7,745.28 +08-Mar-16 IBERIA Liabilities:MasterCard $-1,231.60 $6,513.68 +08-Mar-16 IBERIA Liabilities:MasterCard $-1,231.60 $5,282.08 +08-Apr-03 AMERICAN Liabilities:MasterCard $-155.86 $5,126.22 +08-Apr-03 AMERICAN Liabilities:MasterCard $-155.86 $4,970.36 +08-Apr-30 UNITED Liabilities:MasterCard $-437.21 $4,533.15 +08-Apr-30 UNITED Liabilities:MasterCard $-437.21 $4,095.94 +08-Aug-08 BCIS I-131 FILING F.. Liabilities:MasterCard $-170.00 $3,925.94 +08-Sep-06 AMERICAN Liabilities:MasterCard $-912.60 $3,013.34 +08-Sep-06 AMERICAN Liabilities:MasterCard $-912.60 $2,100.74 +08-Sep-22 AGNT FEE Liabilities:MasterCard $-70.00 $2,030.74 +08-Sep-22 DELTA Liabilities:MasterCard $-806.20 $1,224.54 +08-Sep-22 DELTA Liabilities:MasterCard $-806.20 $418.34 +08-Sep-22 LIAT 1974 LIMITED Liabilities:MasterCard $-418.34 0 +>>>2 +=== 0 +reg --sort-xacts=account +>>>1 +08-Jan-11 LIAT Ex:Travel:Airfare $40.00 $40.00 + Liabilities:MasterCard $-40.00 0 +08-Jan-14 cheaptickets.com Ex:Travel:Airfare $182.19 $182.19 + Liabilities:MasterCard $-182.19 0 +08-Feb-05 CTX Expenses:Travel:Auto $240.38 $240.38 + Liabilities:MasterCard $-240.38 0 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $238.80 + Liabilities:MasterCard $-238.80 0 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $238.80 + Liabilities:MasterCard $-238.80 0 +08-Feb-22 BUDGET RENT-A-CAR Expenses:Travel:Auto $40.59 $40.59 + Liabilities:MasterCard $-40.59 0 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $1,231.60 + Liabilities:MasterCard $-1,231.60 0 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $1,231.60 + Liabilities:MasterCard $-1,231.60 0 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $155.86 + Liabilities:MasterCard $-155.86 0 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $155.86 + Liabilities:MasterCard $-155.86 0 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $437.21 + Liabilities:MasterCard $-437.21 0 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $437.21 + Liabilities:MasterCard $-437.21 0 +08-Aug-08 BCIS I-131 FILING F.. Ex:Travel:Passport $170.00 $170.00 + Liabilities:MasterCard $-170.00 0 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $912.60 + Liabilities:MasterCard $-912.60 0 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $912.60 + Liabilities:MasterCard $-912.60 0 +08-Sep-22 AGNT FEE Ex:Travel:Airfare $70.00 $70.00 + Liabilities:MasterCard $-70.00 0 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $806.20 + Liabilities:MasterCard $-806.20 0 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $806.20 + Liabilities:MasterCard $-806.20 0 +08-Sep-22 LIAT 1974 LIMITED Ex:Travel:Airfare $418.34 $418.34 + Liabilities:MasterCard $-418.34 0 +08-Dec-26 U.S. Department of .. Assets:Checking $-127.00 $-127.00 + Ex:Travel:Passport $127.00 0 +08-Dec-26 U.S. Department of .. Assets:Checking $-127.00 $-127.00 + Ex:Travel:Passport $127.00 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-sort.test b/test/baseline/opt-sort.test new file mode 100644 index 00000000..27efe31b --- /dev/null +++ b/test/baseline/opt-sort.test @@ -0,0 +1,246 @@ +reg airfare --sort=date +<<< +2008/01/11 LIAT + Expenses:Travel:Airfare $40.00 + Liabilities:MasterCard + +2008/01/14 cheaptickets.com + Expenses:Travel:Airfare $182.19 + Liabilities:MasterCard + +2008/02/05 CTX + Expenses:Travel:Auto $240.38 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/22 BUDGET RENT-A-CAR + Expenses:Travel:Auto $40.59 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/08/08 BCIS I-131 FILING FEE- + Expenses:Travel:Passport $170.00 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/22 AGNT FEE + Expenses:Travel:Airfare $70.00 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 LIAT 1974 LIMITED + Expenses:Travel:Airfare $418.34 + Liabilities:MasterCard + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking +>>>1 +08-Jan-11 LIAT Ex:Travel:Airfare $40.00 $40.00 +08-Jan-14 cheaptickets.com Ex:Travel:Airfare $182.19 $222.19 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $460.99 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $699.79 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $1,931.39 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $3,162.99 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,318.85 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,474.71 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $3,911.92 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $4,349.13 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $5,261.73 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $6,174.33 +08-Sep-22 AGNT FEE Ex:Travel:Airfare $70.00 $6,244.33 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $7,050.53 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $7,856.73 +08-Sep-22 LIAT 1974 LIMITED Ex:Travel:Airfare $418.34 $8,275.07 +>>>2 +=== 0 +reg airfare --sort=date,amount +>>>1 +08-Jan-11 LIAT Ex:Travel:Airfare $40.00 $40.00 +08-Jan-14 cheaptickets.com Ex:Travel:Airfare $182.19 $222.19 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $460.99 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $699.79 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $1,931.39 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $3,162.99 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,318.85 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,474.71 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $3,911.92 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $4,349.13 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $5,261.73 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $6,174.33 +08-Sep-22 AGNT FEE Ex:Travel:Airfare $70.00 $6,244.33 +08-Sep-22 LIAT 1974 LIMITED Ex:Travel:Airfare $418.34 $6,662.67 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $7,468.87 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $8,275.07 +>>>2 +=== 0 +reg airfare --sort=date,-amount +>>>1 +08-Jan-11 LIAT Ex:Travel:Airfare $40.00 $40.00 +08-Jan-14 cheaptickets.com Ex:Travel:Airfare $182.19 $222.19 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $460.99 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $699.79 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $1,931.39 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $3,162.99 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,318.85 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,474.71 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $3,911.92 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $4,349.13 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $5,261.73 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $6,174.33 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $6,980.53 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $7,786.73 +08-Sep-22 LIAT 1974 LIMITED Ex:Travel:Airfare $418.34 $8,205.07 +08-Sep-22 AGNT FEE Ex:Travel:Airfare $70.00 $8,275.07 +>>>2 +=== 0 +reg airfare --sort=-date,-amount +>>>1 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $806.20 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $1,612.40 +08-Sep-22 LIAT 1974 LIMITED Ex:Travel:Airfare $418.34 $2,030.74 +08-Sep-22 AGNT FEE Ex:Travel:Airfare $70.00 $2,100.74 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $3,013.34 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $3,925.94 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $4,363.15 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $4,800.36 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $4,956.22 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $5,112.08 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $6,343.68 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $7,575.28 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $7,814.08 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $8,052.88 +08-Jan-14 cheaptickets.com Ex:Travel:Airfare $182.19 $8,235.07 +08-Jan-11 LIAT Ex:Travel:Airfare $40.00 $8,275.07 +>>>2 +=== 0 +bal --sort=total +>>>1 + $-8,726.04 Liabilities:MasterCard + $-254.00 Assets:Checking + $8,980.04 Expenses:Travel + $280.97 Auto + $424.00 Passport + $8,275.07 Airfare +-------------------- + 0 +>>>2 +=== 0 +bal --sort=-total +>>>1 + $8,980.04 Expenses:Travel + $8,275.07 Airfare + $424.00 Passport + $280.97 Auto + $-254.00 Assets:Checking + $-8,726.04 Liabilities:MasterCard +-------------------- + 0 +>>>2 +=== 0 +bal --sort=-account +>>>1 + $-8,726.04 Liabilities:MasterCard + $8,980.04 Expenses:Travel + $424.00 Passport + $280.97 Auto + $8,275.07 Airfare + $-254.00 Assets:Checking +-------------------- + 0 +>>>2 +=== 0 +reg --sort=account +>>>1 +08-Dec-26 U.S. Department of .. Assets:Checking $-127.00 $-127.00 +08-Dec-26 U.S. Department of .. Assets:Checking $-127.00 $-254.00 +08-Jan-11 LIAT Ex:Travel:Airfare $40.00 $-214.00 +08-Jan-14 cheaptickets.com Ex:Travel:Airfare $182.19 $-31.81 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $206.99 +08-Feb-05 UNITED Ex:Travel:Airfare $238.80 $445.79 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $1,677.39 +08-Mar-16 IBERIA Ex:Travel:Airfare $1,231.60 $2,908.99 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,064.85 +08-Apr-03 AMERICAN Ex:Travel:Airfare $155.86 $3,220.71 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $3,657.92 +08-Apr-30 UNITED Ex:Travel:Airfare $437.21 $4,095.13 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $5,007.73 +08-Sep-06 AMERICAN Ex:Travel:Airfare $912.60 $5,920.33 +08-Sep-22 AGNT FEE Ex:Travel:Airfare $70.00 $5,990.33 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $6,796.53 +08-Sep-22 DELTA Ex:Travel:Airfare $806.20 $7,602.73 +08-Sep-22 LIAT 1974 LIMITED Ex:Travel:Airfare $418.34 $8,021.07 +08-Feb-05 CTX Expenses:Travel:Auto $240.38 $8,261.45 +08-Feb-22 BUDGET RENT-A-CAR Expenses:Travel:Auto $40.59 $8,302.04 +08-Aug-08 BCIS I-131 FILING F.. Ex:Travel:Passport $170.00 $8,472.04 +08-Dec-26 U.S. Department of .. Ex:Travel:Passport $127.00 $8,599.04 +08-Dec-26 U.S. Department of .. Ex:Travel:Passport $127.00 $8,726.04 +08-Jan-11 LIAT Liabilities:MasterCard $-40.00 $8,686.04 +08-Jan-14 cheaptickets.com Liabilities:MasterCard $-182.19 $8,503.85 +08-Feb-05 CTX Liabilities:MasterCard $-240.38 $8,263.47 +08-Feb-05 UNITED Liabilities:MasterCard $-238.80 $8,024.67 +08-Feb-05 UNITED Liabilities:MasterCard $-238.80 $7,785.87 +08-Feb-22 BUDGET RENT-A-CAR Liabilities:MasterCard $-40.59 $7,745.28 +08-Mar-16 IBERIA Liabilities:MasterCard $-1,231.60 $6,513.68 +08-Mar-16 IBERIA Liabilities:MasterCard $-1,231.60 $5,282.08 +08-Apr-03 AMERICAN Liabilities:MasterCard $-155.86 $5,126.22 +08-Apr-03 AMERICAN Liabilities:MasterCard $-155.86 $4,970.36 +08-Apr-30 UNITED Liabilities:MasterCard $-437.21 $4,533.15 +08-Apr-30 UNITED Liabilities:MasterCard $-437.21 $4,095.94 +08-Aug-08 BCIS I-131 FILING F.. Liabilities:MasterCard $-170.00 $3,925.94 +08-Sep-06 AMERICAN Liabilities:MasterCard $-912.60 $3,013.34 +08-Sep-06 AMERICAN Liabilities:MasterCard $-912.60 $2,100.74 +08-Sep-22 AGNT FEE Liabilities:MasterCard $-70.00 $2,030.74 +08-Sep-22 DELTA Liabilities:MasterCard $-806.20 $1,224.54 +08-Sep-22 DELTA Liabilities:MasterCard $-806.20 $418.34 +08-Sep-22 LIAT 1974 LIMITED Liabilities:MasterCard $-418.34 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-subtotal.test b/test/baseline/opt-subtotal.test new file mode 100644 index 00000000..41defbc1 --- /dev/null +++ b/test/baseline/opt-subtotal.test @@ -0,0 +1,93 @@ +reg --subtotal +<<< +2008/01/11 LIAT + Expenses:Travel:Airfare $40.00 + Liabilities:MasterCard + +2008/01/14 cheaptickets.com + Expenses:Travel:Airfare $182.19 + Liabilities:MasterCard + +2008/02/05 CTX + Expenses:Travel:Auto $240.38 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/22 BUDGET RENT-A-CAR + Expenses:Travel:Auto $40.59 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/08/08 BCIS I-131 FILING FEE- + Expenses:Travel:Passport $170.00 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/22 AGNT FEE + Expenses:Travel:Airfare $70.00 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 LIAT 1974 LIMITED + Expenses:Travel:Airfare $418.34 + Liabilities:MasterCard + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking +>>>1 +08-Jan-11 - 08-Dec-26 Assets:Checking $-254.00 $-254.00 + Ex:Travel:Airfare $8,275.07 $8,021.07 + Expenses:Travel:Auto $280.97 $8,302.04 + Ex:Travel:Passport $424.00 $8,726.04 + Liabilities:MasterCard $-8,726.04 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-total-data.test b/test/baseline/opt-total-data.test new file mode 100644 index 00000000..f1ab33c1 --- /dev/null +++ b/test/baseline/opt-total-data.test @@ -0,0 +1,10 @@ +reg --market --total-data +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 +2007-02-02 0.35 +2007-02-02 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-total.test b/test/baseline/opt-total.test new file mode 100644 index 00000000..8f4719d2 --- /dev/null +++ b/test/baseline/opt-total.test @@ -0,0 +1,10 @@ +reg --total=10 +<<< +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 10 + In:Di:Vanguard:VMMXX $-0.35 10 +>>>2 +=== 0 diff --git a/test/baseline/opt-truncate.test b/test/baseline/opt-truncate.test new file mode 100644 index 00000000..0f9190c2 --- /dev/null +++ b/test/baseline/opt-truncate.test @@ -0,0 +1,144 @@ +reg airfare --truncate=leading +<<< +2008/01/11 LIAT + Expenses:Travel:Airfare $40.00 + Liabilities:MasterCard + +2008/01/14 cheaptickets.com + Expenses:Travel:Airfare $182.19 + Liabilities:MasterCard + +2008/02/05 CTX + Expenses:Travel:Auto $240.38 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/22 BUDGET RENT-A-CAR + Expenses:Travel:Auto $40.59 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/08/08 BCIS I-131 FILING FEE- + Expenses:Travel:Passport $170.00 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/22 AGNT FEE + Expenses:Travel:Airfare $70.00 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 LIAT 1974 LIMITED + Expenses:Travel:Airfare $418.34 + Liabilities:MasterCard + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking +>>>1 +08-Jan-11 LIAT ..enses:Travel:Airfare $40.00 $40.00 +08-Jan-14 cheaptickets.com ..enses:Travel:Airfare $182.19 $222.19 +08-Feb-05 UNITED ..enses:Travel:Airfare $238.80 $460.99 +08-Feb-05 UNITED ..enses:Travel:Airfare $238.80 $699.79 +08-Mar-16 IBERIA ..enses:Travel:Airfare $1,231.60 $1,931.39 +08-Mar-16 IBERIA ..enses:Travel:Airfare $1,231.60 $3,162.99 +08-Apr-03 AMERICAN ..enses:Travel:Airfare $155.86 $3,318.85 +08-Apr-03 AMERICAN ..enses:Travel:Airfare $155.86 $3,474.71 +08-Apr-30 UNITED ..enses:Travel:Airfare $437.21 $3,911.92 +08-Apr-30 UNITED ..enses:Travel:Airfare $437.21 $4,349.13 +08-Sep-06 AMERICAN ..enses:Travel:Airfare $912.60 $5,261.73 +08-Sep-06 AMERICAN ..enses:Travel:Airfare $912.60 $6,174.33 +08-Sep-22 AGNT FEE ..enses:Travel:Airfare $70.00 $6,244.33 +08-Sep-22 DELTA ..enses:Travel:Airfare $806.20 $7,050.53 +08-Sep-22 DELTA ..enses:Travel:Airfare $806.20 $7,856.73 +08-Sep-22 LIAT 1974 LIMITED ..enses:Travel:Airfare $418.34 $8,275.07 +>>>2 +=== 0 +reg airfare --truncate=middle +>>>1 +08-Jan-11 LIAT Expenses:T..el:Airfare $40.00 $40.00 +08-Jan-14 cheaptickets.com Expenses:T..el:Airfare $182.19 $222.19 +08-Feb-05 UNITED Expenses:T..el:Airfare $238.80 $460.99 +08-Feb-05 UNITED Expenses:T..el:Airfare $238.80 $699.79 +08-Mar-16 IBERIA Expenses:T..el:Airfare $1,231.60 $1,931.39 +08-Mar-16 IBERIA Expenses:T..el:Airfare $1,231.60 $3,162.99 +08-Apr-03 AMERICAN Expenses:T..el:Airfare $155.86 $3,318.85 +08-Apr-03 AMERICAN Expenses:T..el:Airfare $155.86 $3,474.71 +08-Apr-30 UNITED Expenses:T..el:Airfare $437.21 $3,911.92 +08-Apr-30 UNITED Expenses:T..el:Airfare $437.21 $4,349.13 +08-Sep-06 AMERICAN Expenses:T..el:Airfare $912.60 $5,261.73 +08-Sep-06 AMERICAN Expenses:T..el:Airfare $912.60 $6,174.33 +08-Sep-22 AGNT FEE Expenses:T..el:Airfare $70.00 $6,244.33 +08-Sep-22 DELTA Expenses:T..el:Airfare $806.20 $7,050.53 +08-Sep-22 DELTA Expenses:T..el:Airfare $806.20 $7,856.73 +08-Sep-22 LIAT 1974 LIMITED Expenses:T..el:Airfare $418.34 $8,275.07 +>>>2 +=== 0 +reg airfare --truncate=trailing +>>>1 +08-Jan-11 LIAT Expenses:Travel:Airf.. $40.00 $40.00 +08-Jan-14 cheaptickets.com Expenses:Travel:Airf.. $182.19 $222.19 +08-Feb-05 UNITED Expenses:Travel:Airf.. $238.80 $460.99 +08-Feb-05 UNITED Expenses:Travel:Airf.. $238.80 $699.79 +08-Mar-16 IBERIA Expenses:Travel:Airf.. $1,231.60 $1,931.39 +08-Mar-16 IBERIA Expenses:Travel:Airf.. $1,231.60 $3,162.99 +08-Apr-03 AMERICAN Expenses:Travel:Airf.. $155.86 $3,318.85 +08-Apr-03 AMERICAN Expenses:Travel:Airf.. $155.86 $3,474.71 +08-Apr-30 UNITED Expenses:Travel:Airf.. $437.21 $3,911.92 +08-Apr-30 UNITED Expenses:Travel:Airf.. $437.21 $4,349.13 +08-Sep-06 AMERICAN Expenses:Travel:Airf.. $912.60 $5,261.73 +08-Sep-06 AMERICAN Expenses:Travel:Airf.. $912.60 $6,174.33 +08-Sep-22 AGNT FEE Expenses:Travel:Airf.. $70.00 $6,244.33 +08-Sep-22 DELTA Expenses:Travel:Airf.. $806.20 $7,050.53 +08-Sep-22 DELTA Expenses:Travel:Airf.. $806.20 $7,856.73 +08-Sep-22 LIAT 1974 LIMITED Expenses:Travel:Airf.. $418.34 $8,275.07 +>>>2 +=== 0 diff --git a/test/baseline/opt-unround.test b/test/baseline/opt-unround.test new file mode 100644 index 00000000..70018f12 --- /dev/null +++ b/test/baseline/opt-unround.test @@ -0,0 +1,94 @@ +bal --unround --percent +<<< +2008/01/11 LIAT + Expenses:Travel:Airfare $40.00 + Liabilities:MasterCard + +2008/01/14 cheaptickets.com + Expenses:Travel:Airfare $182.19 + Liabilities:MasterCard + +2008/02/05 CTX + Expenses:Travel:Auto $240.38 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/05 UNITED + Expenses:Travel:Airfare $238.80 + Liabilities:MasterCard + +2008/02/22 BUDGET RENT-A-CAR + Expenses:Travel:Auto $40.59 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/03/16 IBERIA + Expenses:Travel:Airfare $1,231.60 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/03 AMERICAN + Expenses:Travel:Airfare $155.86 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/04/30 UNITED + Expenses:Travel:Airfare $437.21 + Liabilities:MasterCard + +2008/08/08 BCIS I-131 FILING FEE- + Expenses:Travel:Passport $170.00 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/06 AMERICAN + Expenses:Travel:Airfare $912.60 + Liabilities:MasterCard + +2008/09/22 AGNT FEE + Expenses:Travel:Airfare $70.00 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 DELTA + Expenses:Travel:Airfare $806.20 + Liabilities:MasterCard + +2008/09/22 LIAT 1974 LIMITED + Expenses:Travel:Airfare $418.34 + Liabilities:MasterCard + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking + +2008/12/26 U.S. Department of State + Expenses:Travel:Passport $127.00 + Assets:Checking +>>>1 + 100.00% Assets:Checking + 100.00% Expenses:Travel + 92.14958953% Airfare + 3.12882793% Auto + 4.72158253% Passport + 100.00% Liabilities:MasterCard +>>>2 +=== 0 |