diff options
Diffstat (limited to 'test/regress')
29 files changed, 899 insertions, 0 deletions
diff --git a/test/regress/04C5E1CA.test b/test/regress/04C5E1CA.test new file mode 100644 index 00000000..729ae6bf --- /dev/null +++ b/test/regress/04C5E1CA.test @@ -0,0 +1,18 @@ +reg +<<< +2009/04/04 CS Club Sign + Expenses:School:CS Club:Home Depot:4" Brush 2 @ $3.97 + Liabilities:Mastercard + +2009/04/04 CS Club Sign + Expenses:School:CS Club:Home Depot:4" Brush (2 * $3.97) + Liabilities:Mastercard +>>>1 +09-Apr-04 CS Club Sign Ex:Sc:CS:Ho:4" Brush 2 2 + Liabilities:Mastercard $-7.94 2 + $-7.94 +09-Apr-04 CS Club Sign Ex:Sc:CS:Ho:4" Brush $7.94 2 + Liabilities:Mastercard $-7.94 2 + $-7.94 +>>>2 +=== 0 diff --git a/test/regress/0CA014F9.test b/test/regress/0CA014F9.test new file mode 100644 index 00000000..d3377132 --- /dev/null +++ b/test/regress/0CA014F9.test @@ -0,0 +1,13 @@ +bal +<<< +2007/02/02 RD VMMXX + Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 + Income:Dividends:Vanguard:VMMXX $-0.35 +>>>1 + 0.350 VMMXX Assets:Investments:Vanguard:VMMXX + $-0.35 Income:Dividends:Vanguard:VMMXX +-------------------- + $-0.35 + 0.350 VMMXX +>>>2 +=== 0 diff --git a/test/regress/13965214.test b/test/regress/13965214.test new file mode 100644 index 00000000..674d4d7d --- /dev/null +++ b/test/regress/13965214.test @@ -0,0 +1,30 @@ +reg +<<< +Y2008 + +01/30 A + Bank 130 + Income + +02/01 B + Bank 140 + Income + +02/20 C + Bank 150 + Income + +03/01 D + Bank 160 + Income +>>>1 +08-Jan-30 A Bank 130 130 + Income -130 0 +08-Feb-01 B Bank 140 140 + Income -140 0 +08-Feb-20 C Bank 150 150 + Income -150 0 +08-Mar-01 D Bank 160 160 + Income -160 0 +>>>2 +=== 0 diff --git a/test/regress/1CF1EEC2.test b/test/regress/1CF1EEC2.test new file mode 100644 index 00000000..f97eea81 --- /dev/null +++ b/test/regress/1CF1EEC2.test @@ -0,0 +1,27 @@ +equity assets +<<< +2009/01/01 sample + Assets:Super:ARF $1000.00 + Assets:Super:CSS $1000.00 + Assets:Super:CSS:Contributions $1000.00 + Income:Opening Balances + +2009/02/01 sample + Assets:Super:ARF $1000.00 + Assets:Super:CSS $1000.00 + Assets:Super:CSS:Contributions $1000.00 + Income:Opening Balances + +2009/03/01 sample + Assets:Super:ARF $1000.00 + Assets:Super:CSS $1000.00 + Assets:Super:CSS:Contributions $1000.00 + Income:Opening Balances +>>>1 +2009/03/01 Opening Balances + Assets:Super:ARF $3000.00 + Assets:Super:CSS $3000.00 + Assets:Super:CSS:Contributions $3000.00 + Equity:Opening Balances $-9000.00 +>>>2 +=== 0 diff --git a/test/regress/25A099C9.test b/test/regress/25A099C9.test new file mode 100644 index 00000000..4067d005 --- /dev/null +++ b/test/regress/25A099C9.test @@ -0,0 +1,19 @@ +-f $sourcepath/src/amount.h reg +<<< +>>>1 +>>>2 +While parsing file "$sourcepath/src/amount.h", line 67: +Error: No quantity specified for amount +While parsing file "$sourcepath/src/amount.h", line 720: +Error: Invalid date/time: line amount_t amoun +While parsing file "$sourcepath/src/amount.h", line 726: +Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 732: +Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 738: +Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 744: +Error: Invalid date/time: line std::ostream& +While parsing file "$sourcepath/src/amount.h", line 751: +Error: Invalid date/time: line std::istream& +=== 7 diff --git a/test/regress/2E3496BD.test b/test/regress/2E3496BD.test new file mode 100644 index 00000000..cb105f08 --- /dev/null +++ b/test/regress/2E3496BD.test @@ -0,0 +1,20 @@ +bal +<<< +D 1,000.00 USD + +2007-12-31 * Start of year / Opening balances. + Account1 1000 EUR @ 1.6 USD + Account2 -1000 EUR @ 1.5 USD +>>>1 +>>>2 +While parsing file "$FILE", line 5: +While balancing transaction from "$FILE", lines 3-5: +> 2007-12-31 * Start of year / Opening balances. +> Account1 1000 EUR @ 1.6 USD +> Account2 -1000 EUR @ 1.5 USD +Unbalanced remainder is: + 100.00 USD +Amount to balance against: + 1,600.0 USD +Error: Transaction does not balance +=== 1 diff --git a/test/regress/373540CC.test b/test/regress/373540CC.test new file mode 100644 index 00000000..5c589ec9 --- /dev/null +++ b/test/regress/373540CC.test @@ -0,0 +1,9 @@ +bal --sort total --flat -X '$' not '(Income|Liabilities)' +<<< +2004/05/27 Book Store + Expenses:Books 20 BOOK @ $10 + Liabilities:MasterCard $-200.00 +>>>1 + $200.00 Expenses:Books +>>>2 +=== 0 diff --git a/test/regress/3AB70168.test b/test/regress/3AB70168.test new file mode 100644 index 00000000..6c08b0bf --- /dev/null +++ b/test/regress/3AB70168.test @@ -0,0 +1,13 @@ +bal +<<< +i 2007/03/01 23:00:00 A +o 2007/03/02 01:00:00 +i 2007/03/11 23:00:00 B +o 2007/03/12 01:00:00 +>>>1 + 2.0h A + 2.0h B +-------------------- + 4.0h +>>>2 +=== 0 diff --git a/test/regress/461980A1.test b/test/regress/461980A1.test new file mode 100644 index 00000000..bbf2ee4e --- /dev/null +++ b/test/regress/461980A1.test @@ -0,0 +1,13 @@ +bal +<<< +2008/01/01 one + test:a 1 + test:b +>>>1 + 0 test + 1 a + -1 b +-------------------- + 0 +>>>2 +=== 0 diff --git a/test/regress/55831A79.test b/test/regress/55831A79.test new file mode 100644 index 00000000..d553bdfa --- /dev/null +++ b/test/regress/55831A79.test @@ -0,0 +1,26 @@ +bal discover +<<< +2008/01/01 * previous balances + liabilities:credit cards:discover 4462 $-1094.38 + equity:opening balances + +2008/01/18 * DISCOVER FEES + liabilities:credit cards:discover 4462:interest $-36.59 + assets:bank:wells fargo:checking + +2008/01/18 * DISCOVER FEES + liabilities:credit cards:discover 4462:fee $-39 + liabilities:credit cards:discover 4462:interest $-28.17 + assets:bank:wells fargo:checking + +2008/03/01 * discover card payment + liabilities:credit cards:discover 4462 $1198.14 + assets:bank:wells fargo:checking +>>>1 + 0 liabilities:credit cards:discover 4462 + $-39.00 fee + $-64.76 interest +-------------------- + 0 +>>>2 +=== 0 diff --git a/test/regress/5A03CFC3.test b/test/regress/5A03CFC3.test new file mode 100644 index 00000000..440ff960 --- /dev/null +++ b/test/regress/5A03CFC3.test @@ -0,0 +1,72 @@ +bal assets +<<< += /^Income/ + (Liabilities:Tithe) 0.12 + +~ Monthly + Assets:Checking $500.00 + Income:Salary + +2003/12/01 * Checking balance + Assets:Checking $1,000.00 + Equity:Opening Balances + +2003/12/20 Organic Co-op + Expenses:Food:Groceries $ 37.50 ; [=2004/01/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/02/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/03/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/04/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/05/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/06/01] + Assets:Checking $ -225.00 + +2003/12/28=2004/01/01 Acme Mortgage + Liabilities:Mortgage:Principal $ 200.00 + Expenses:Interest:Mortgage $ 500.00 + Expenses:Escrow $ 300.00 + Assets:Checking $ -1000.00 + +2004/01/02 Grocery Store + Expenses:Food:Groceries $ 65.00 + Assets:Checking + +2004/01/05 Employer + Assets:Checking $ 2000.00 + Income:Salary + +2004/01/14 Bank + ; Regular monthly savings transfer + Assets:Savings $ 300.00 + Assets:Checking + +2004/01/19 Grocery Store + Expenses:Food:Groceries $ 44.00 + Assets:Checking + +2004/01/25 Bank + ; Transfer to cover car purchase + Assets:Checking $ 5,500.00 + Assets:Savings + ; :nobudget: + +2004/01/25 Tom's Used Cars + Expenses:Auto $ 5,500.00 + ; :nobudget: + Assets:Checking + +2004/01/27 Book Store + Expenses:Books $20.00 + Liabilities:MasterCard + +2004/02/01 Sale + Assets:Checking:Business $ 30.00 + Income:Sales +>>>1 + $ -3,804.00 Assets + $ 1,396.00 Checking + $ 30.00 Business + $ -5,200.00 Savings +-------------------- + $ -3,804.00 +>>>2 +=== 0 diff --git a/test/regress/5F1BAF17.test b/test/regress/5F1BAF17.test new file mode 100644 index 00000000..f52ffb86 --- /dev/null +++ b/test/regress/5F1BAF17.test @@ -0,0 +1,130 @@ +bal da39 --flat --sort amount --display-total amount +<<< +2006/02/16 b5f40e96 + da39a3ee:8d437dbf:ee2bf9bd:f61e33bf $713.35 + Assets + +2006/03/27 c7ab1f2d + da39a3ee:8d437dbf:ee2bf9bd:9b69a35a $139.62 + Assets + +2006/03/30 f32ea1dc + da39a3ee:8d437dbf:ee2bf9bd:d219c681 $1,600.00 + Assets + +2006/04/21 d449d51e + da39a3ee:8d437dbf:ee2bf9bd:75b04b88 $698.10 + Assets + +2006/05/02 b02f8323 + da39a3ee:8d437dbf:ee2bf9bd $42.22 + Assets + +2006/05/05 2a6f6850 + da39a3ee:8d437dbf:ee2bf9bd:75b04b88:b3850e04 $2,468.00 + Assets + +2006/05/09 59f92263 + da39a3ee:8d437dbf:ee2bf9bd:071c929a $132.82 + Assets + +2006/05/18 f78a7a51 + da39a3ee:8d437dbf:ee2bf9bd:e97de844 $368.05 + Assets + +2006/05/19 f35c594c + da39a3ee:8d437dbf:ee2bf9bd:d4e7d7d3 $386.62 + Assets + +2006/05/22 0233a991 + da39a3ee:8d437dbf:ee2bf9bd:9c6e5a3f $141.98 + Assets + +2006/05/23 56ccae7f + da39a3ee:8d437dbf:ee2bf9bd:d31d367b $81.78 + Assets + +2006/05/24 d449d51e + da39a3ee:8d437dbf:ee2bf9bd:75b04b88 $65.00 + Assets + +2006/05/25 dc833c91 + da39a3ee:8d437dbf:ee2bf9bd:d31d367b $34.37 + Assets + +2006/05/31 6822b496 + da39a3ee:8d437dbf:ee2bf9bd:e97de844 $41.78 + Assets + +2006/06/02 dff8ccb2 + da39a3ee:8d437dbf:ee2bf9bd:14e351e1 $67.36 + Assets + +2006/06/02 e1eb3f4b + da39a3ee:8d437dbf:ee2bf9bd:2c7a078f $14.00 + Assets + +2006/06/04 feec73ea + da39a3ee:8d437dbf:ee2bf9bd:131260cb $144.99 + Assets + +2006/06/04 e8f65e0a + da39a3ee:8d437dbf:ee2bf9bd:d219c681 $75.00 + Assets + +2006/06/04 3fd43f7b + da39a3ee:8d437dbf:ee2bf9bd:9c4ba7d0 $239.59 + Assets + +2006/06/06 754be754 + da39a3ee:8d437dbf:ee2bf9bd:35b25929 $1,160.14 + Assets + +2006/06/06 00c16d44 + da39a3ee:8d437dbf:ee2bf9bd:e97de844 $78.45 + Assets + +2006/06/08 e7b0b317 + da39a3ee:8d437dbf:ee2bf9bd $443.00 + Assets + +2006/07/17 a30c4c31 + da39a3ee:8d437dbf:ee2bf9bd $880.80 + Assets + +2006/08/08 e31a0cf9 + da39a3ee:8d437dbf:ee2bf9bd $104.53 + Assets + +2006/08/10 f0c0c688 + da39a3ee:8d437dbf:ee2bf9bd $196.70 + Assets + +2006/09/12 1bc59c63 + da39a3ee:8d437dbf:ee2bf9bd $217.79 + Assets + +2007/07/16 557e3a00 + da39a3ee:8d437dbf:ee2bf9bd:f61e33bf $117.80 + Assets +>>>1 + $14.00 da39a3ee:8d437dbf:ee2bf9bd:2c7a078f + $67.36 da39a3ee:8d437dbf:ee2bf9bd:14e351e1 + $116.15 da39a3ee:8d437dbf:ee2bf9bd:d31d367b + $132.82 da39a3ee:8d437dbf:ee2bf9bd:071c929a + $139.62 da39a3ee:8d437dbf:ee2bf9bd:9b69a35a + $141.98 da39a3ee:8d437dbf:ee2bf9bd:9c6e5a3f + $144.99 da39a3ee:8d437dbf:ee2bf9bd:131260cb + $239.59 da39a3ee:8d437dbf:ee2bf9bd:9c4ba7d0 + $386.62 da39a3ee:8d437dbf:ee2bf9bd:d4e7d7d3 + $488.28 da39a3ee:8d437dbf:ee2bf9bd:e97de844 + $763.10 da39a3ee:8d437dbf:ee2bf9bd:75b04b88 + $831.15 da39a3ee:8d437dbf:ee2bf9bd:f61e33bf + $1,160.14 da39a3ee:8d437dbf:ee2bf9bd:35b25929 + $1,675.00 da39a3ee:8d437dbf:ee2bf9bd:d219c681 + $1,885.04 da39a3ee:8d437dbf:ee2bf9bd + $2,468.00 da39a3ee:8d437dbf:ee2bf9bd:75b04b88:b3850e04 +-------------------- + 0 +>>>2 +=== 0 diff --git a/test/regress/5FBF2ED8.test b/test/regress/5FBF2ED8.test new file mode 100644 index 00000000..78df5a6e --- /dev/null +++ b/test/regress/5FBF2ED8.test @@ -0,0 +1,20 @@ +bal -B +<<< +2008/01/01 * Checking balance + Assets:Bank:Checking £0.00 + Equity:Opening Balances + +2008/02/02 Salary + Income:Employer £-334.00 + Assets:Bank:Checking $512.85 @@ £334.00 + +2008/03/02 Salary + Income:Employer £-248.07 + Assets:Bank:Checking $404.82 @@ £248.07 +>>>1 + £582.07 Assets:Bank:Checking + £-582.07 Income:Employer +-------------------- + 0 +>>>2 +=== 0 diff --git a/test/regress/647D5DB9.test b/test/regress/647D5DB9.test new file mode 100644 index 00000000..2d6b78e3 --- /dev/null +++ b/test/regress/647D5DB9.test @@ -0,0 +1,17 @@ +bal --end 2008/12/31 -JV Equities +<<< +2008/01/01 * Purchase Apple shares + Equities 1000 AAPL @ $2 + Cash + +2008/06/30 * Sell some Apple shares + Equities -500 AAPL @ $2.5 + Cash + +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 +2008-12-31 1500 +>>>2 +=== 0 diff --git a/test/regress/6DAB9FE3.test b/test/regress/6DAB9FE3.test new file mode 100644 index 00000000..50b944ae --- /dev/null +++ b/test/regress/6DAB9FE3.test @@ -0,0 +1,10 @@ +reg -E +<<< +2009/01/01 Sample + assets 0 FOO @ $8.88 + equity +>>>1 +09-Jan-01 Sample assets 0 0 + equity 0 0 +>>>2 +=== 0 diff --git a/test/regress/727B2DF8.test b/test/regress/727B2DF8.test new file mode 100644 index 00000000..a13e8292 --- /dev/null +++ b/test/regress/727B2DF8.test @@ -0,0 +1,81 @@ +reg --color --force-color +<<< +N $ + += /^Expenses:Books/ + (Liabilities:Taxes) -0.10 + +~ Monthly + Assets:Bank:Checking $500.00 + Income:Salary + +2004/05/01 * Checking balance + Assets:Bank:Checking $1,000.00 + Equity:Opening Balances + +2004/05/03=2004/05/01 * Investment balance + Assets:Brokerage 50 AAPL @ $30.00 + Equity:Opening Balances + +2004/05/14 * Páy dày + Assets:Bank:Checking 500.00€ + Income:Salary + +2004/05/14 * Another dày in which there is Páying + Asséts:Bánk:Chécking:Asséts:Bánk:Chécking $500.00 + Income:Salary + +2004/05/14 * Another dày in which there is Páying + Русский язык:Русский язык:Русский язык:Русский язык $1000.00 + Income:Salary + +2004/05/27 Book Store + Expenses:Books $20.00 + Expenses:Cards $40.00 + Expenses:Docs $30.00 + Liabilities:MasterCard + +2004/05/27 (100) Credit card company + ; This is an xact note! + ; Sample: Value + Liabilities:MasterCard $20.00 + ; This is a posting note! + ; Sample: Another Value + ; :MyTag: + Assets:Bank:Checking + ; :AnotherTag: +>>>1 +04-May-01 Checking balance [34mAssets:Bank:Checking [0m $1,000.00 $1,000.00 + [34mEq:Opening Balances [0m [31m$-1,000.00[0m 0 +04-May-03 Investment balance [34mAssets:Brokerage [0m 50 AAPL 50 AAPL + [34mEq:Opening Balances [0m [31m$-1,500.00[0m [31m$-1,500.00[0m + 50 AAPL +04-May-14 Páy dày [34mAssets:Bank:Checking [0m 500.00€ [31m$-1,500.00[0m + 50 AAPL + 500.00€ + [34mIncome:Salary [0m [31m-500.00€[0m [31m$-1,500.00[0m + 50 AAPL +04-May-14 Another dày in whic.. [34m..Bá:Ch:As:Bá:Chécking[0m $500.00 [31m$-1,000.00[0m + 50 AAPL + [34mIncome:Salary [0m [31m$-500.00[0m [31m$-1,500.00[0m + 50 AAPL +04-May-14 Another dày in whic.. [34mРу:Ру:Ру:Русский язык [0m $1,000.00 [31m$-500.00[0m + 50 AAPL + [34mIncome:Salary [0m [31m$-1,000.00[0m [31m$-1,500.00[0m + 50 AAPL +04-May-27 [1mBook Store [0m [34mExpenses:Books [0m $20.00 [31m$-1,480.00[0m + 50 AAPL + [34mExpenses:Cards [0m $40.00 [31m$-1,440.00[0m + 50 AAPL + [34mExpenses:Docs [0m $30.00 [31m$-1,410.00[0m + 50 AAPL + [34mLiabilities:MasterCard[0m [31m$-90.00[0m [31m$-1,500.00[0m + 50 AAPL + [34m(Liabilities:Taxes) [0m [31m$-2.00[0m [31m$-1,502.00[0m + 50 AAPL +04-May-27 [1mCredit card company [0m [34mLiabilities:MasterCard[0m $20.00 [31m$-1,482.00[0m + 50 AAPL + [34mAssets:Bank:Checking [0m [31m$-20.00[0m [31m$-1,502.00[0m + 50 AAPL +>>>2 +=== 0 diff --git a/test/regress/793F6BF0.test b/test/regress/793F6BF0.test new file mode 100644 index 00000000..059bd9b6 --- /dev/null +++ b/test/regress/793F6BF0.test @@ -0,0 +1,52 @@ +entry 2009/03/15 book 10 +<<< +N $ + += /^Expenses:Books/ + (Liabilities:Taxes) -0.10 + +~ Monthly + Assets:Bank:Checking $500.00 + Income:Salary + +2004/05/01 * Checking balance + Assets:Bank:Checking $1,000.00 + Equity:Opening Balances + +2004/05/03=2004/05/01 * Investment balance + Assets:Brokerage 50 AAPL @ $30.00 + Equity:Opening Balances + +2004/05/14 * Páy dày + Assets:Bank:Checking 500.00€ + Income:Salary + +2004/05/14 * Another dày in which there is Páying + Asséts:Bánk:Chécking:Asséts:Bánk:Chécking $500.00 + Income:Salary + +2004/05/14 * Another dày in which there is Páying + Русский язык:Русский язык:Русский язык:Русский язык $1000.00 + Income:Salary + +2004/05/27 Book Store + Expenses:Books $20.00 + Expenses:Cards $40.00 + Expenses:Docs $30.00 + Liabilities:MasterCard + +2004/05/27 (100) Credit card company + ; This is an xact note! + ; Sample: Value + Liabilities:MasterCard $20.00 + ; This is a posting note! + ; Sample: Another Value + ; :MyTag: + Assets:Bank:Checking + ; :AnotherTag: +>>>1 +2009/03/15 Book Store + Expenses:Books $10.00 + Liabilities:MasterCard +>>>2 +=== 0 diff --git a/test/regress/7F3650FD.test b/test/regress/7F3650FD.test new file mode 100644 index 00000000..f7154eb8 --- /dev/null +++ b/test/regress/7F3650FD.test @@ -0,0 +1,95 @@ +period --now=2010/11/01 12/01 +<<< +>>>1 +--- Period expression tokens --- +TOK_DATE: month Dec day 1 +END_REACHED: <EOF> + +--- Before stabilization --- + range: in month Dec day 1 + +--- After stabilization --- + range: in month Dec day 1 + start: 10-Dec-01 + finish: 10-Dec-02 + +--- Sample dates in range (max. 20) --- + 1: 10-Dec-01 +>>>2 +=== 0 +period --now=2010/11/01 10/01 +<<< +>>>1 +--- Period expression tokens --- +TOK_DATE: month Oct day 1 +END_REACHED: <EOF> + +--- Before stabilization --- + range: in month Oct day 1 + +--- After stabilization --- + range: in month Oct day 1 + start: 10-Oct-01 + finish: 10-Oct-02 + +--- Sample dates in range (max. 20) --- + 1: 10-Oct-01 +>>>2 +=== 0 +period --now=2010/11/01 2009/10 +<<< +>>>1 +--- Period expression tokens --- +TOK_DATE: year 2009 month Oct +END_REACHED: <EOF> + +--- Before stabilization --- + range: in year 2009 month Oct + +--- After stabilization --- + range: in year 2009 month Oct + start: 09-Oct-01 + finish: 09-Nov-01 + +--- Sample dates in range (max. 20) --- + 1: 09-Oct-01 +>>>2 +=== 0 +period --now=2010/11/01 2009/10/01 +<<< +>>>1 +--- Period expression tokens --- +TOK_DATE: year 2009 month Oct day 1 +END_REACHED: <EOF> + +--- Before stabilization --- + range: in year 2009 month Oct day 1 + +--- After stabilization --- + range: in year 2009 month Oct day 1 + start: 09-Oct-01 + finish: 09-Oct-02 + +--- Sample dates in range (max. 20) --- + 1: 09-Oct-01 +>>>2 +=== 0 +period --now=2010/11/01 2009 +<<< +>>>1 +--- Period expression tokens --- +TOK_A_YEAR: 2009 +END_REACHED: <EOF> + +--- Before stabilization --- + range: in year 2009 + +--- After stabilization --- + range: in year 2009 + start: 09-Jan-01 + finish: 10-Jan-01 + +--- Sample dates in range (max. 20) --- + 1: 09-Jan-01 +>>>2 +=== 0 diff --git a/test/regress/8254755E.test b/test/regress/8254755E.test new file mode 100644 index 00000000..26baf52d --- /dev/null +++ b/test/regress/8254755E.test @@ -0,0 +1,20 @@ +bal --flat food:out +<<< +~ Monthly + Expenses:Auto:Fuel $120.00 + Expenses:Food:Out $100.00 + Expenses:Food:Groceries $350.00 + Assets + +2009/11/01 + Expenses:Food:Out $50.00 + Assets +>>>1 + $50.00 Expenses:Food:Out +>>>2 +=== 0 +bal --flat --budget food:out +>>>1 + $-50.00 Expenses:Food:Out +>>>2 +=== 0 diff --git a/test/regress/86D2BDC4.test b/test/regress/86D2BDC4.test new file mode 100644 index 00000000..8cd51e42 --- /dev/null +++ b/test/regress/86D2BDC4.test @@ -0,0 +1,12 @@ +reg -B +<<< +2009/06/03 Westjet + Expenses:Transportation:Air C$429.80 @ 1.572865 + Expenses:Bank:Fees 2.73 + Liabilities:Mastercard +>>>1 +09-Jun-03 Westjet Ex:Transportation:Air 676.017377 676.017377 + Expenses:Bank:Fees 2.73 678.747377 + Liabilities:Mastercard -678.747377 0 +>>>2 +=== 0 diff --git a/test/regress/B68FFB0D.test b/test/regress/B68FFB0D.test new file mode 100644 index 00000000..2dd2086c --- /dev/null +++ b/test/regress/B68FFB0D.test @@ -0,0 +1,15 @@ +print +<<< +D $1,000.00 + +2009/01/01 Sample + assets 134.123 FOO @ $8.88 + assets 100 BAR @ $8.88 + equity +>>>1 +2009/01/01 Sample + assets 134.123 FOO @ $8.88 + assets 100 BAR @ $8.88 + equity +>>>2 +=== 0 diff --git a/test/regress/BBFA1759.test b/test/regress/BBFA1759.test new file mode 100644 index 00000000..cd5990fc --- /dev/null +++ b/test/regress/BBFA1759.test @@ -0,0 +1,20 @@ +period june 2008 +<<< +>>>1 +--- Period expression tokens --- +TOK_A_MONTH: Jun +TOK_A_YEAR: 2008 +END_REACHED: <EOF> + +--- Before stabilization --- + range: in year 2008 month Jun + +--- After stabilization --- + range: in year 2008 month Jun + start: 08-Jun-01 + finish: 08-Jul-01 + +--- Sample dates in range (max. 20) --- + 1: 08-Jun-01 +>>>2 +=== 0 diff --git a/test/regress/C523E23F.test b/test/regress/C523E23F.test new file mode 100644 index 00000000..b8b08e00 --- /dev/null +++ b/test/regress/C523E23F.test @@ -0,0 +1,21 @@ +bal +<<< +D 1.000,00€ + +2009/03/16 * denn's + ; Kauf: Yogi-Tee + Aufwand:Einkauf:Lebensmittel 17,94€ + Aktiva:Bank:Girokonto + +2009/03/24 Ansparen + Aktiva:Bank:Sparkonto 800,00€ + Aktiva:Bank:Girokonto +>>>1 + -17,94€ Aktiva:Bank + -817,94€ Girokonto + 800,00€ Sparkonto + 17,94€ Aufwand:Einkauf:Lebensmittel +-------------------- + 0 +>>>2 +=== 0 diff --git a/test/regress/D060256A.test b/test/regress/D060256A.test new file mode 100644 index 00000000..26c30351 --- /dev/null +++ b/test/regress/D060256A.test @@ -0,0 +1,16 @@ +budget --now=2009/11/01 --end=2009/11/30 +<<< +~ Monthly + Expenses:Food $500.00 + Assets + +2009/11/01 Sample + Expenses:Food:Dining $20.00 + Assets +>>>1 + $-20.00 $-500.00 $480.00 4% Assets + $20.00 $500.00 $-480.00 4% Expenses:Food +------------ ------------ ------------ ----- + 0 0 0 0 +>>>2 +=== 0 diff --git a/test/regress/D943AE0F.test b/test/regress/D943AE0F.test new file mode 100644 index 00000000..94a26df5 --- /dev/null +++ b/test/regress/D943AE0F.test @@ -0,0 +1,15 @@ +reg -V --end=2009/06/16 +<<< +D 1000.00 EUR + +2008/04/15 * Paid expenses back from cie. + Expenses:Cie-Reimbursements 2000 CAD @ 1.10 EUR + Assets:Checking + +P 2008/04/20 00:00:00 CAD 1.20 EUR +>>>1 +08-Apr-15 Paid expenses back .. Ex:Cie-Reimbursements 2200.00 EUR 2200.00 EUR + Assets:Checking -2200.00 EUR 0 +09-Jun-16 Commodities revalued <Revalued> 200.00 EUR 200.00 EUR +>>>2 +=== 0 diff --git a/test/regress/E4C9A8EA.test b/test/regress/E4C9A8EA.test new file mode 100644 index 00000000..fed47c82 --- /dev/null +++ b/test/regress/E4C9A8EA.test @@ -0,0 +1,24 @@ +reg +<<< +2007/12/31 * Cost basis for: RED HAT INC RHT + Assets:Investments:RBC-Broker:Account-RSP 4 RHT + Equity:Opening-Balances:Cost -689.87 CAD + +2008/01/03=2007/12/28 * Sell -- RHT -- RED HAT INC CA TAUX DE CHANGE .96590 + Assets:Investments:RBC-Broker:Account-RSP -4.00 RHT @ 21.14 CAD + Expenses:Financial:Commissions 9.95 USD @ 0.96590 CAD + Assets:Investments:RBC-Broker:Account-RSP 72.06 CAD + Expenses:Financial:Fees +>>>1 +07-Dec-31 Cost basis for: RED.. As:In:RB:Account-RSP 4.00 RHT 4.00 RHT + Eq:Op:Cost -689.87 CAD -689.87 CAD + 4.00 RHT +08-Jan-03 Sell -- RHT -- RED .. As:In:RB:Account-RSP -4.00 RHT -689.87 CAD + Ex:Fi:Commissions 9.95 USD -689.87 CAD + 9.95 USD + As:In:RB:Account-RSP 72.06 CAD -617.81 CAD + 9.95 USD + Ex:Financial:Fees 2.89 CAD -614.92 CAD + 9.95 USD +>>>2 +=== 0 diff --git a/test/regress/E627C594.test b/test/regress/E627C594.test new file mode 100644 index 00000000..0dfbf778 --- /dev/null +++ b/test/regress/E627C594.test @@ -0,0 +1,18 @@ +reg --forecast-while="d<[2010/03/01]" --now=2009/11/01 +<<< +~ Monthly + Expenses:Food $500.00 + Assets + +2009/11/01 Sample + Expenses:Food:Dining $20.00 + Assets +>>>1 +09-Nov-01 Sample Expenses:Food:Dining $20.00 $20.00 + Assets $-20.00 0 +10-Jan-01 Forecast transaction Expenses:Food $500.00 $500.00 +10-Jan-01 Forecast transaction Assets $-500.00 0 +10-Feb-01 Forecast transaction Expenses:Food $500.00 $500.00 +10-Feb-01 Forecast transaction Assets $-500.00 0 +>>>2 +=== 0 diff --git a/test/regress/E9F130C5.test b/test/regress/E9F130C5.test new file mode 100644 index 00000000..b718b11d --- /dev/null +++ b/test/regress/E9F130C5.test @@ -0,0 +1,30 @@ +bal as +<<< +2008/01/01 income + assets:bank:checking $1 + income:salary + +2008/06/01 gift + assets:bank:checking $1 + income:gifts + +2008/06/02 save + assets:bank:saving $1 + assets:bank:checking + +2008/06/03 * eat & shop + expenses:food $1 + expenses:supplies $1 + assets:cash + +2008/12/31 * pay off + liabilities:debts $1 + assets:bank:checking +>>>1 + $-1 assets + $1 bank:saving + $-2 cash +-------------------- + $-1 +>>>2 +=== 0 diff --git a/test/regress/F559EC12.test b/test/regress/F559EC12.test new file mode 100644 index 00000000..c8b686db --- /dev/null +++ b/test/regress/F559EC12.test @@ -0,0 +1,43 @@ +format "%-12(scrub(amount))" +<<< +>>>1 +--- Context is first posting of the following transaction --- +2004/05/27 Book Store + ; This note applies to all postings. :SecondTag: + Expenses:Books 20 BOOK @ $10 + ; Metadata: Some Value + ; :ExampleTag: + ; Here follows a note describing the posting. + Liabilities:MasterCard $-200.00 + +--- Input format string --- +%-12(scrub(amount)) + +--- Format elements --- +Element: EXPR flags: 0x1 min: 12 max: 0 expr: scrub(amount) + +--- Formatted string --- +"20 BOOK " +>>>2 +=== 0 +format "%12(scrub(amount))" +>>>1 +--- Context is first posting of the following transaction --- +2004/05/27 Book Store + ; This note applies to all postings. :SecondTag: + Expenses:Books 20 BOOK @ $10 + ; Metadata: Some Value + ; :ExampleTag: + ; Here follows a note describing the posting. + Liabilities:MasterCard $-200.00 + +--- Input format string --- +%12(scrub(amount)) + +--- Format elements --- +Element: EXPR flags: 0x0 min: 12 max: 0 expr: scrub(amount) + +--- Formatted string --- +" 20 BOOK" +>>>2 +=== 0 |