diff options
author | John Wiegley <johnw@newartisans.com> | 2011-02-12 17:31:49 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-02-12 18:11:26 -0500 |
commit | 9c62463f84dc398b41b387fbacce31abed7e4839 (patch) | |
tree | ba73122f301f477b8a4174bd1c3ff27334709ad0 /test/regress | |
parent | 512542552b3e3e78f610f3d3f2fd1c8169188324 (diff) | |
download | fork-ledger-9c62463f84dc398b41b387fbacce31abed7e4839.tar.gz fork-ledger-9c62463f84dc398b41b387fbacce31abed7e4839.tar.bz2 fork-ledger-9c62463f84dc398b41b387fbacce31abed7e4839.zip |
Changed testing format to aid with debugging
Diffstat (limited to 'test/regress')
38 files changed, 149 insertions, 151 deletions
diff --git a/test/regress/04C5E1CA.test b/test/regress/04C5E1CA.test index c51234f0..1aeeb662 100644 --- a/test/regress/04C5E1CA.test +++ b/test/regress/04C5E1CA.test @@ -1,5 +1,3 @@ -reg -<<< 2009/04/04 CS Club Sign Expenses:School:CS Club:Home Depot:4" Brush 2 @ $3.97 Liabilities:Mastercard @@ -7,11 +5,12 @@ reg 2009/04/04 CS Club Sign Expenses:School:CS Club:Home Depot:4" Brush (2 * $3.97) Liabilities:Mastercard ->>>1 + +test reg 09-Apr-04 CS Club Sign Ex:Sc:CS:Home:4" Brush 2 2 Liabilities:Mastercard $-7.94 2 $-7.94 09-Apr-04 CS Club Sign Ex:Sc:CS:Home:4" Brush $7.94 2 Liabilities:Mastercard $-7.94 2 $-7.94 -=== 0 +end test diff --git a/test/regress/0CA014F9.test b/test/regress/0CA014F9.test index 1e736338..a736643c 100644 --- a/test/regress/0CA014F9.test +++ b/test/regress/0CA014F9.test @@ -1,11 +1,11 @@ -bal -<<< 2007/02/02 RD VMMXX Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00 Income:Dividends:Vanguard:VMMXX $-0.35 ->>>1 + +test bal 0.350 VMMXX Assets:Investments:Vanguard:VMMXX $-0.35 Income:Dividends:Vanguard:VMMXX -------------------- $-0.35 0.350 VMMXX +end test diff --git a/test/regress/13965214.test b/test/regress/13965214.test index 99dbc0fd..4fa9ce3a 100644 --- a/test/regress/13965214.test +++ b/test/regress/13965214.test @@ -1,5 +1,3 @@ -reg -<<< Y2008 01/30 A @@ -17,7 +15,8 @@ Y2008 03/01 D Bank 160 Income ->>>1 + +test reg 08-Jan-30 A Bank 130 130 Income -130 0 08-Feb-01 B Bank 140 140 @@ -26,3 +25,4 @@ Y2008 Income -150 0 08-Mar-01 D Bank 160 160 Income -160 0 +end test diff --git a/test/regress/15230B79.test b/test/regress/15230B79.test index b20ab89a..796c79b5 100644 --- a/test/regress/15230B79.test +++ b/test/regress/15230B79.test @@ -1,12 +1,12 @@ -reg -<<< 2010-04-02 Opening balance Assets:A 14.75 EUR Assets:B 2.84 GBP Equity:Opening balance ->>> + +test reg 10-Apr-02 Opening balance Assets:A 14.75 EUR 14.75 EUR Assets:B 2.84 GBP 14.75 EUR 2.84 GBP Equity:Opening balance -14.75 EUR 2.84 GBP Equity:Opening balance -2.84 GBP 0 +end test diff --git a/test/regress/1CF1EEC2.test b/test/regress/1CF1EEC2.test index 8deb4a5e..e1d0a99e 100644 --- a/test/regress/1CF1EEC2.test +++ b/test/regress/1CF1EEC2.test @@ -1,5 +1,3 @@ -equity assets -<<< 2009/01/01 sample Assets:Super:ARF $1000.00 Assets:Super:CSS $1000.00 @@ -17,9 +15,11 @@ equity assets Assets:Super:CSS $1000.00 Assets:Super:CSS:Contributions $1000.00 Income:Opening Balances ->>>1 + +test equity assets 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 +end test diff --git a/test/regress/1D275740.test b/test/regress/1D275740.test index 0a1f650a..70a8092f 100644 --- a/test/regress/1D275740.test +++ b/test/regress/1D275740.test @@ -1,5 +1,3 @@ -print -<<< D 1.200,40 € 1999/11/01 * Achat @@ -87,7 +85,8 @@ D 1.200,40 € 2009/09/29 Vente Actif:SV -0,0415 MFE @ 358,800 € Actif:SV 14,89 € ->>>1 + +test print 1999/11/01 * Achat Actif:SSB 125,0000 STK Actif:SSB -1672,42 $ @@ -173,3 +172,4 @@ D 1.200,40 € 2009/09/29 Vente Actif:SV -0,0415 MFE @ 358,80 € Actif:SV 14,89 € +end test diff --git a/test/regress/25A099C9.test b/test/regress/25A099C9.test index b3e23a6c..fc06449b 100644 --- a/test/regress/25A099C9.test +++ b/test/regress/25A099C9.test @@ -1,7 +1,5 @@ --f $sourcepath/src/amount.h reg -<<< ->>>1 ->>>2 +test -f $sourcepath/src/amount.h reg -> 7 +__ERROR__ While parsing file "$sourcepath/src/amount.h", line 66: Error: No quantity specified for amount While parsing file "$sourcepath/src/amount.h", line 726: @@ -16,4 +14,4 @@ While parsing file "$sourcepath/src/amount.h", line 750: Error: Invalid date/time: line std::ostream& While parsing file "$sourcepath/src/amount.h", line 757: Error: Invalid date/time: line std::istream& -=== 7 +end test diff --git a/test/regress/2E3496BD.test b/test/regress/2E3496BD.test index 466464b3..82c7cde7 100644 --- a/test/regress/2E3496BD.test +++ b/test/regress/2E3496BD.test @@ -1,12 +1,11 @@ -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 + +test bal -> 1 +__ERROR__ While parsing file "$FILE", line 5: While balancing transaction from "$FILE", lines 3-5: > 2007-12-31 * Start of year / Opening balances. @@ -17,4 +16,4 @@ Unbalanced remainder is: Amount to balance against: 1,600.00 USD Error: Transaction does not balance -=== 1 +end test diff --git a/test/regress/373540CC.test b/test/regress/373540CC.test index ad5c9a07..f4c2d504 100644 --- a/test/regress/373540CC.test +++ b/test/regress/373540CC.test @@ -1,7 +1,7 @@ -bal --sort total --flat -X '$' not '(Income|Liabilities)' -<<< 2004/05/27 Book Store Expenses:Books 20 BOOK @ $10 Liabilities:MasterCard $-200.00 ->>>1 + +test bal --sort total --flat -X '$' not '(Income|Liabilities)' $200.00 Expenses:Books +end test diff --git a/test/regress/3AB70168.test b/test/regress/3AB70168.test index 1fde2bdb..d4167307 100644 --- a/test/regress/3AB70168.test +++ b/test/regress/3AB70168.test @@ -1,11 +1,11 @@ -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 + +test bal 2.00h A 2.00h B -------------------- 4.00h +end test diff --git a/test/regress/461980A1.test b/test/regress/461980A1.test index 7c5da8e6..48f69d1e 100644 --- a/test/regress/461980A1.test +++ b/test/regress/461980A1.test @@ -1,11 +1,11 @@ -bal -<<< 2008/01/01 one test:a 1 test:b ->>>1 + +test bal 0 test 1 a -1 b -------------------- 0 +end test diff --git a/test/regress/55831A79.test b/test/regress/55831A79.test index a605a028..a1708934 100644 --- a/test/regress/55831A79.test +++ b/test/regress/55831A79.test @@ -1,5 +1,3 @@ -bal discover -<<< 2008/01/01 * previous balances liabilities:credit cards:discover 4462 $-1094.38 equity:opening balances @@ -16,9 +14,11 @@ bal discover 2008/03/01 * discover card payment liabilities:credit cards:discover 4462 $1198.14 assets:bank:wells fargo:checking ->>>1 + +test bal discover 0 liabilities:credit cards:discover 4462 $-39.00 fee $-64.76 interest -------------------- 0 +end test diff --git a/test/regress/56BBE69B.test b/test/regress/56BBE69B.test index 508ff8aa..69d3ca34 100644 --- a/test/regress/56BBE69B.test +++ b/test/regress/56BBE69B.test @@ -1,5 +1,3 @@ -bal -<<< D 1000.00 USD 2010-01-07 * Put money in @@ -9,9 +7,11 @@ D 1000.00 USD 2010-01-11 * Purchase Assets:A 20.00 EUR @@ 25.00 USD Expenses:B ->>> + +test bal 20.00 EUR Equity:Opening balances -25.00 USD Expenses:B -------------------- 20.00 EUR -25.00 USD +end test diff --git a/test/regress/5A03CFC3.test b/test/regress/5A03CFC3.test index 93c15cb2..d57277ca 100644 --- a/test/regress/5A03CFC3.test +++ b/test/regress/5A03CFC3.test @@ -1,5 +1,3 @@ -bal assets -<<< = /^Income/ (Liabilities:Tithe) 0.12 @@ -61,10 +59,12 @@ bal assets 2004/02/01 Sale Assets:Checking:Business $ 30.00 Income:Sales ->>>1 + +test bal assets $ -3,804.00 Assets $ 1,396.00 Checking $ 30.00 Business $ -5,200.00 Savings -------------------- $ -3,804.00 +end test diff --git a/test/regress/5F1BAF17.test b/test/regress/5F1BAF17.test index c6580c96..e0a2a21f 100644 --- a/test/regress/5F1BAF17.test +++ b/test/regress/5F1BAF17.test @@ -1,5 +1,3 @@ -bal da39 --flat --sort amount --display-total amount -<<< 2006/02/16 b5f40e96 da39a3ee:8d437dbf:ee2bf9bd:f61e33bf $713.35 Assets @@ -107,7 +105,8 @@ bal da39 --flat --sort amount --display-total amount 2007/07/16 557e3a00 da39a3ee:8d437dbf:ee2bf9bd:f61e33bf $117.80 Assets ->>>1 + +test bal da39 --flat --sort amount --display-total amount $14.00 da39a3ee:8d437dbf:ee2bf9bd:2c7a078f $67.36 da39a3ee:8d437dbf:ee2bf9bd:14e351e1 $116.15 da39a3ee:8d437dbf:ee2bf9bd:d31d367b @@ -126,3 +125,4 @@ bal da39 --flat --sort amount --display-total amount $2,468.00 da39a3ee:8d437dbf:ee2bf9bd:75b04b88:b3850e04 -------------------- 0 +end test diff --git a/test/regress/5FBF2ED8.test b/test/regress/5FBF2ED8.test index 5f44be6a..807c1b96 100644 --- a/test/regress/5FBF2ED8.test +++ b/test/regress/5FBF2ED8.test @@ -1,5 +1,3 @@ -bal -B -<<< 2008/01/01 * Checking balance Assets:Bank:Checking £0.00 Equity:Opening Balances @@ -11,8 +9,10 @@ bal -B 2008/03/02 Salary Income:Employer £-248.07 Assets:Bank:Checking $404.82 @@ £248.07 ->>>1 + +test bal -B £582.07 Assets:Bank:Checking £-582.07 Income:Employer -------------------- 0 +end test diff --git a/test/regress/620F0674.test b/test/regress/620F0674.test index 3f81a078..585d6d8d 100644 --- a/test/regress/620F0674.test +++ b/test/regress/620F0674.test @@ -1,5 +1,3 @@ -reg bank --forecast "d<=[next year]" -d "d>=[this month] & d<=[next year]" --sort d --now=2010/06/20 -<<< ~ Monthly since 2010/01/01 Expenses:Bills:Rent $873.00 Expenses:Household $200.00 @@ -10,15 +8,25 @@ reg bank --forecast "d<=[next year]" -d "d>=[this month] & d<=[next year]" --sor Expenses:Bills:Housecleaning $85.00 Assets:Bank:Checking -2010/06/22 c897683b - ad738623:d317da42:0e30a690 A2079.00 - 208b135f:c84cc2a7:a336b63a A199.00 - 45435ee9:2d8ee712:ee7e46b1:0f0e7e54:f5dbec59 ->>> +test reg bank --forecast "d<=[next year]" -d "d>=[this month] & d<=[next year]" --sort d --now=2010/06/20 10-Jul-01 Forecast transaction Assets:Bank:Checking $1418.60 $1418.60 -10-Aug-01 Forecast transaction Assets:Bank:Checking $1418.60 $2837.20 -10-Sep-01 Forecast transaction Assets:Bank:Checking $1418.60 $4255.80 -10-Oct-01 Forecast transaction Assets:Bank:Checking $1418.60 $5674.40 -10-Nov-01 Forecast transaction Assets:Bank:Checking $1418.60 $7093.00 -10-Dec-01 Forecast transaction Assets:Bank:Checking $1418.60 $8511.60 -11-Jan-01 Forecast transaction Assets:Bank:Checking $1418.60 $9930.20 +10-Jul-04 Forecast transaction Assets:Bank:Checking $-85.00 $1333.60 +10-Jul-18 Forecast transaction Assets:Bank:Checking $-85.00 $1248.60 +10-Aug-01 Forecast transaction Assets:Bank:Checking $1418.60 $2667.20 +10-Aug-01 Forecast transaction Assets:Bank:Checking $-85.00 $2582.20 +10-Aug-15 Forecast transaction Assets:Bank:Checking $-85.00 $2497.20 +10-Aug-29 Forecast transaction Assets:Bank:Checking $-85.00 $2412.20 +10-Sep-01 Forecast transaction Assets:Bank:Checking $1418.60 $3830.80 +10-Sep-12 Forecast transaction Assets:Bank:Checking $-85.00 $3745.80 +10-Sep-26 Forecast transaction Assets:Bank:Checking $-85.00 $3660.80 +10-Oct-01 Forecast transaction Assets:Bank:Checking $1418.60 $5079.40 +10-Oct-10 Forecast transaction Assets:Bank:Checking $-85.00 $4994.40 +10-Oct-24 Forecast transaction Assets:Bank:Checking $-85.00 $4909.40 +10-Nov-01 Forecast transaction Assets:Bank:Checking $1418.60 $6328.00 +10-Nov-07 Forecast transaction Assets:Bank:Checking $-85.00 $6243.00 +10-Nov-21 Forecast transaction Assets:Bank:Checking $-85.00 $6158.00 +10-Dec-01 Forecast transaction Assets:Bank:Checking $1418.60 $7576.60 +10-Dec-05 Forecast transaction Assets:Bank:Checking $-85.00 $7491.60 +10-Dec-19 Forecast transaction Assets:Bank:Checking $-85.00 $7406.60 +11-Jan-01 Forecast transaction Assets:Bank:Checking $1418.60 $8825.20 +end test diff --git a/test/regress/647D5DB9.test b/test/regress/647D5DB9.test index cf3a797e..7e53f23b 100644 --- a/test/regress/647D5DB9.test +++ b/test/regress/647D5DB9.test @@ -1,5 +1,3 @@ -bal --end 2008/12/31 -JV Equities -<<< 2008/01/01 * Purchase Apple shares Equities 1000 AAPL @ $2 Cash @@ -11,5 +9,7 @@ bal --end 2008/12/31 -JV Equities 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 + +test bal --end 2008/12/31 -JV Equities 2008-12-31 1500 +end test diff --git a/test/regress/6DAB9FE3.test b/test/regress/6DAB9FE3.test index f26c502e..7031fd3a 100644 --- a/test/regress/6DAB9FE3.test +++ b/test/regress/6DAB9FE3.test @@ -1,8 +1,8 @@ -reg -E -<<< 2009/01/01 Sample assets 0 FOO @ $8.88 equity ->>>1 + +test reg -E 09-Jan-01 Sample assets 0 0 equity 0 0 +end test diff --git a/test/regress/727B2DF8.test b/test/regress/727B2DF8.test index d43da89c..0c32d660 100644 --- a/test/regress/727B2DF8.test +++ b/test/regress/727B2DF8.test @@ -1,5 +1,3 @@ -reg --color --force-color -<<< N $ = /^Expenses:Books/ @@ -44,7 +42,8 @@ N $ ; :MyTag: Assets:Bank:Checking ; :AnotherTag: ->>>1 + +test reg --color --force-color 04-May-01 Checking balance [34mAssets:Bank:Checking [0m $1,000.00 $1,000.00 [34mEquit:Opening Balances[0m [31m$-1,000.00[0m 0 04-May-03 Investment balance [34mAssets:Brokerage [0m 50 AAPL 50 AAPL @@ -77,3 +76,4 @@ N $ 50 AAPL [34mAssets:Bank:Checking [0m [31m$-20.00[0m [31m$-1,502.00[0m 50 AAPL +end test diff --git a/test/regress/793F6BF0.test b/test/regress/793F6BF0.test index 4842ce4c..1afe9ecb 100644 --- a/test/regress/793F6BF0.test +++ b/test/regress/793F6BF0.test @@ -1,5 +1,3 @@ -entry 2009/03/15 book 10 -<<< N $ = /^Expenses:Books/ @@ -44,7 +42,9 @@ N $ ; :MyTag: Assets:Bank:Checking ; :AnotherTag: ->>>1 + +test entry 2009/03/15 book 10 2009/03/15 Book Store Expenses:Books $10.00 Liabilities:MasterCard +end test diff --git a/test/regress/7C44010B.test b/test/regress/7C44010B.test index f0437588..962f0194 100644 --- a/test/regress/7C44010B.test +++ b/test/regress/7C44010B.test @@ -1,5 +1,3 @@ -reg -X F -J Assets -<<< D 1000,00 € 1994/1/1 Company @@ -21,10 +19,12 @@ P 2002/1/1 € 6,55957 F 2002/1/1 Company Assets:Checking 2000 € Income:Salary ->>> + +test reg -X F -J Assets 1994-01-01 10000 1998-01-01 11000 1998-01-01 10000 1998-12-31 10200 1999-01-01 9000 2002-01-01 22119.14 +end test diff --git a/test/regress/7F3650FD.test b/test/regress/7F3650FD.test index e2a53a5a..f0498ddb 100644 --- a/test/regress/7F3650FD.test +++ b/test/regress/7F3650FD.test @@ -1,6 +1,4 @@ -period --now=2010/11/01 12/01 -<<< ->>>1 +test period --now=2010/11/01 12/01 --- Period expression tokens --- TOK_DATE: month Dec day 1 END_REACHED: <EOF> @@ -15,10 +13,9 @@ END_REACHED: <EOF> --- Sample dates in range (max. 20) --- 1: 10-Dec-01 -=== 0 -period --now=2010/11/01 10/01 -<<< ->>>1 +end test + +test period --now=2010/11/01 10/01 --- Period expression tokens --- TOK_DATE: month Oct day 1 END_REACHED: <EOF> @@ -33,10 +30,9 @@ END_REACHED: <EOF> --- Sample dates in range (max. 20) --- 1: 10-Oct-01 -=== 0 -period --now=2010/11/01 2009/10 -<<< ->>>1 +end test + +test period --now=2010/11/01 2009/10 --- Period expression tokens --- TOK_DATE: year 2009 month Oct END_REACHED: <EOF> @@ -51,10 +47,9 @@ END_REACHED: <EOF> --- Sample dates in range (max. 20) --- 1: 09-Oct-01 -=== 0 -period --now=2010/11/01 2009/10/01 -<<< ->>>1 +end test + +test period --now=2010/11/01 2009/10/01 --- Period expression tokens --- TOK_DATE: year 2009 month Oct day 1 END_REACHED: <EOF> @@ -69,10 +64,9 @@ END_REACHED: <EOF> --- Sample dates in range (max. 20) --- 1: 09-Oct-01 -=== 0 -period --now=2010/11/01 2009 -<<< ->>>1 +end test + +test period --now=2010/11/01 2009 --- Period expression tokens --- TOK_A_YEAR: 2009 END_REACHED: <EOF> @@ -87,3 +81,4 @@ END_REACHED: <EOF> --- Sample dates in range (max. 20) --- 1: 09-Jan-01 +end test diff --git a/test/regress/8254755E.test b/test/regress/8254755E.test index b86fb38d..e3b85c1e 100644 --- a/test/regress/8254755E.test +++ b/test/regress/8254755E.test @@ -1,5 +1,3 @@ -bal --flat food:out --now=2009/12/31 -<<< ~ Monthly Expenses:Auto:Fuel $120.00 Expenses:Food:Out $100.00 @@ -9,9 +7,11 @@ bal --flat food:out --now=2009/12/31 2009/11/01 Expenses:Food:Out $50.00 Assets ->>>1 + +test bal --flat food:out --now=2009/12/31 $50.00 Expenses:Food:Out -=== 0 -bal --flat --budget food:out --now=2009/12/31 ->>>1 +end test + +test bal --flat --budget food:out --now=2009/12/31 $-150.00 Expenses:Food:Out +end test diff --git a/test/regress/86D2BDC4.test b/test/regress/86D2BDC4.test index 40b61260..dd843a95 100644 --- a/test/regress/86D2BDC4.test +++ b/test/regress/86D2BDC4.test @@ -1,10 +1,10 @@ -reg -B -<<< 2009/06/03 Westjet Expenses:Transportation:Air C$429.80 @ 1.572865 Expenses:Bank:Fees 2.73 Liabilities:Mastercard ->>>1 + +test reg -B 09-Jun-03 Westjet Expe:Transportatio:Air 676.017377 676.017377 Expenses:Bank:Fees 2.73 678.747377 Liabilities:Mastercard -678.747377 0 +end test diff --git a/test/regress/9EB10714.test b/test/regress/9EB10714.test index 9fd49b7a..a2698f93 100644 --- a/test/regress/9EB10714.test +++ b/test/regress/9EB10714.test @@ -1,5 +1,3 @@ -reg -J -V ^Actif -<<< 1994/01/01 Achat Rialto Actif:Fixe:Rialto 2 Rialto Actif:BNP -120000 € @@ -22,7 +20,8 @@ P 2007/01/01 Rialto 190000 € P 2008/01/01 Rialto 200000 € P 2009/01/01 Rialto 210000 € P 2010/01/01 Rialto 211000 € ->>> + +test reg -J -V ^Actif 1994-01-01 120000 1994-01-01 0 1994-01-01 120000 @@ -41,3 +40,4 @@ P 2010/01/01 Rialto 211000 € 2008-01-01 400000 2009-01-01 420000 2010-01-01 422000 +end test diff --git a/test/regress/A28CF697.test b/test/regress/A28CF697.test index 513dbd97..dd04c275 100644 --- a/test/regress/A28CF697.test +++ b/test/regress/A28CF697.test @@ -1,9 +1,9 @@ -print -<<< 2010-02-05 * Flight SN2094 Assets:Rewards:Airmiles 125 "M&M" Income:Rewards ->>> + +test print 2010/02/05 * Flight SN2094 Assets:Rewards:Airmiles 125 "M&M" Income:Rewards +end test diff --git a/test/regress/B68FFB0D.test b/test/regress/B68FFB0D.test index f6bf5528..8c48db69 100644 --- a/test/regress/B68FFB0D.test +++ b/test/regress/B68FFB0D.test @@ -1,13 +1,13 @@ -print -<<< D $1,000.00 2009/01/01 Sample assets 134.123 FOO @ $8.88 assets 100 BAR @ $8.88 equity ->>>1 + +test print 2009/01/01 Sample assets 134.123 FOO @ $8.88 assets 100 BAR @ $8.88 equity +end test diff --git a/test/regress/BBFA1759.test b/test/regress/BBFA1759.test index 5af1745c..7a402d0c 100644 --- a/test/regress/BBFA1759.test +++ b/test/regress/BBFA1759.test @@ -1,6 +1,5 @@ -period june 2008 -<<< ->>>1 + +test period june 2008 --- Period expression tokens --- TOK_A_MONTH: Jun TOK_A_YEAR: 2008 @@ -16,3 +15,4 @@ END_REACHED: <EOF> --- Sample dates in range (max. 20) --- 1: 08-Jun-01 +end test diff --git a/test/regress/C0212EAC.test b/test/regress/C0212EAC.test index da178054..9a572ef6 100644 --- a/test/regress/C0212EAC.test +++ b/test/regress/C0212EAC.test @@ -1,5 +1,3 @@ -reg -<<< 2007-01-01 Opening balances Assets:Cash 10.00 EUR Equity:Opening balances @@ -14,7 +12,8 @@ reg Income:Gain P 2009-02-01 00:00:00 GBP 1.5 EUR ->>> + +test reg 07-Jan-01 Opening balances Assets:Cash 10.00 EUR 10.00 EUR Equit:Opening balances -10.00 EUR 0 08-Jan-01 Buy 5.00 GBP Assets:Cash 5.00 GBP 5.00 GBP @@ -31,3 +30,4 @@ P 2009-02-01 00:00:00 GBP 1.5 EUR Equity:Capital Gains 0.50 EUR 0.50 EUR 5.00 GBP -5.00 GBP {=1.40 EUR} +end test diff --git a/test/regress/C523E23F.test b/test/regress/C523E23F.test index 8d941f4a..8512f21a 100644 --- a/test/regress/C523E23F.test +++ b/test/regress/C523E23F.test @@ -1,5 +1,3 @@ -bal -<<< D 1.000,00€ 2009/03/16 * denn's @@ -10,10 +8,12 @@ D 1.000,00€ 2009/03/24 Ansparen Aktiva:Bank:Sparkonto 800,00€ Aktiva:Bank:Girokonto ->>>1 + +test bal -17,94€ Aktiva:Bank -817,94€ Girokonto 800,00€ Sparkonto 17,94€ Aufwand:Einkauf:Lebensmittel -------------------- 0 +end test diff --git a/test/regress/D060256A.test b/test/regress/D060256A.test index 579d3ab1..46c32054 100644 --- a/test/regress/D060256A.test +++ b/test/regress/D060256A.test @@ -1,5 +1,3 @@ -budget --now=2009/11/01 --end=2009/11/30 -<<< ~ Monthly Expenses:Food $500.00 Assets @@ -7,8 +5,10 @@ budget --now=2009/11/01 --end=2009/11/30 2009/11/01 Sample Expenses:Food:Dining $20.00 Assets ->>>1 + +test budget --now=2009/11/01 --end=2009/11/30 $-20.00 $-500.00 $480.00 4% Assets $20.00 $500.00 $-480.00 4% Expenses:Food ------------ ------------ ------------ ----- 0 0 0 0 +end test diff --git a/test/regress/D2829FC4.test b/test/regress/D2829FC4.test index 83c991fd..fc0dc10e 100644 --- a/test/regress/D2829FC4.test +++ b/test/regress/D2829FC4.test @@ -1,5 +1,3 @@ -reg --forecast 'date<[2011]' --now=2010/06/20 -<<< ~ Monthly since 2010/01/01 Expenses:Bills:Rent $873.00 Expenses:Household $200.00 @@ -14,7 +12,8 @@ reg --forecast 'date<[2011]' --now=2010/06/20 ad738623:d317da42:0e30a690 A2079.00 208b135f:c84cc2a7:a336b63a A199.00 45435ee9:2d8ee712:ee7e46b1:0f0e7e54:f5dbec59 ->>> + +test reg --forecast 'date<[2011]' --now=2010/06/20 10-Jun-22 c897683b ad738:d317da4:0e30a690 A2079.00 A2079.00 208b1:c84cc2a:a336b63a A199.00 A2278.00 45:2d:ee:0f0e:f5dbec59 A-2278.00 0 @@ -70,3 +69,4 @@ reg --forecast 'date<[2011]' --now=2010/06/20 10-Dec-12 Forecast transaction Assets:Bank:Checking $-85.00 0 10-Dec-26 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00 10-Dec-26 Forecast transaction Assets:Bank:Checking $-85.00 0 +end test diff --git a/test/regress/D943AE0F.test b/test/regress/D943AE0F.test index 7b3159a6..960fbe13 100644 --- a/test/regress/D943AE0F.test +++ b/test/regress/D943AE0F.test @@ -1,5 +1,3 @@ -reg -V -<<< D 1000.00 EUR 2008/04/15 * Paid expenses back from cie. @@ -7,7 +5,9 @@ D 1000.00 EUR Assets:Checking P 2008/04/20 00:00:00 CAD 1.20 EUR ->>>1 + +test reg -V 08-Apr-15 Paid expenses back .. Exp:Cie-Reimbursements 2200.00 EUR 2200.00 EUR Assets:Checking -2200.00 EUR 0 08-Apr-20 Commodities revalued <Revalued> 200.00 EUR 200.00 EUR +end test diff --git a/test/regress/E4C9A8EA.test b/test/regress/E4C9A8EA.test index 6910536f..db83f079 100644 --- a/test/regress/E4C9A8EA.test +++ b/test/regress/E4C9A8EA.test @@ -1,5 +1,3 @@ -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 @@ -9,7 +7,8 @@ reg Expenses:Financial:Commissions 9.95 USD @ 0.96590 CAD Assets:Investments:RBC-Broker:Account-RSP 72.06 CAD Expenses:Financial:Fees ->>>1 + +test reg 07-Dec-31 Cost basis for: RED.. As:In:RBC-:Account-RSP 4.00 RHT 4.00 RHT Eq:Opening-Balanc:Cost -689.87 CAD -689.87 CAD 4.00 RHT @@ -20,3 +19,4 @@ reg 9.95 USD Expense:Financial:Fees 2.89 CAD -614.92 CAD 9.95 USD +end test diff --git a/test/regress/E627C594.test b/test/regress/E627C594.test index 89e4b353..0914affd 100644 --- a/test/regress/E627C594.test +++ b/test/regress/E627C594.test @@ -1,5 +1,3 @@ -reg --forecast-while="d<[2010/03/01]" --now=2009/11/01 -<<< ~ Monthly Expenses:Food $500.00 Assets @@ -7,7 +5,8 @@ reg --forecast-while="d<[2010/03/01]" --now=2009/11/01 2009/11/01 Sample Expenses:Food:Dining $20.00 Assets ->>>1 + +test reg --forecast-while="d<[2010/03/01]" --now=2009/11/01 09-Nov-01 Sample Expenses:Food:Dining $20.00 $20.00 Assets $-20.00 0 09-Dec-01 Forecast transaction Expenses:Food $500.00 $500.00 @@ -16,3 +15,4 @@ reg --forecast-while="d<[2010/03/01]" --now=2009/11/01 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 +end test diff --git a/test/regress/E9F130C5.test b/test/regress/E9F130C5.test index d6237276..d74fdb2d 100644 --- a/test/regress/E9F130C5.test +++ b/test/regress/E9F130C5.test @@ -1,5 +1,3 @@ -bal as -<<< 2008/01/01 income assets:bank:checking $1 income:salary @@ -20,9 +18,11 @@ bal as 2008/12/31 * pay off liabilities:debts $1 assets:bank:checking ->>>1 + +test bal as $-1 assets $1 bank:saving $-2 cash -------------------- $-1 +end test diff --git a/test/regress/F559EC12.test b/test/regress/F559EC12.test index bc7f9581..ceb36e7f 100644 --- a/test/regress/F559EC12.test +++ b/test/regress/F559EC12.test @@ -1,6 +1,4 @@ -format "%-12(scrub(amount))" -<<< ->>>1 +test format "%-12(scrub(amount))" --- Context is first posting of the following transaction --- 2004/05/27 Book Store ; This note applies to all postings. :SecondTag: @@ -19,9 +17,9 @@ Element: EXPR flags: 0x1 min: 12 max: 0 expr: scrub(amount) --- Formatted string --- "20 BOOK " -=== 0 -format "%12(scrub(amount))" ->>>1 +end test + +test format "%12(scrub(amount))" --- Context is first posting of the following transaction --- 2004/05/27 Book Store ; This note applies to all postings. :SecondTag: @@ -40,3 +38,4 @@ Element: EXPR flags: 0x0 min: 12 max: 0 expr: scrub(amount) --- Formatted string --- " 20 BOOK" +end test |