diff options
Diffstat (limited to 'test/regress')
-rw-r--r-- | test/regress/25A099C9.test | 19 | ||||
-rw-r--r-- | test/regress/373540CC.test | 9 | ||||
-rw-r--r-- | test/regress/5F1BAF17.test | 130 | ||||
-rw-r--r-- | test/regress/7F3650FD.test | 50 | ||||
-rw-r--r-- | test/regress/8254755E.test | 20 | ||||
-rw-r--r-- | test/regress/D060256A.test | 16 | ||||
-rw-r--r-- | test/regress/E627C594.test | 18 | ||||
-rw-r--r-- | test/regress/F559EC12.test | 8 |
8 files changed, 270 insertions, 0 deletions
diff --git a/test/regress/25A099C9.test b/test/regress/25A099C9.test new file mode 100644 index 00000000..fb5613e2 --- /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 707: +Error: Invalid date/time: line amount_t amoun +While parsing file "$sourcepath/src/amount.h", line 713: +Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 719: +Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 725: +Error: Invalid date/time: line string amount_ +While parsing file "$sourcepath/src/amount.h", line 731: +Error: Invalid date/time: line std::ostream& +While parsing file "$sourcepath/src/amount.h", line 738: +Error: Invalid date/time: line std::istream& +=== 7 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/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/7F3650FD.test b/test/regress/7F3650FD.test new file mode 100644 index 00000000..0eb3a96f --- /dev/null +++ b/test/regress/7F3650FD.test @@ -0,0 +1,50 @@ +period --now=2010/11/01 12/01 +<<< +>>>1 +global details => + + start: 09-Dec-01 + end: 09-Dec-02 + factor: 1 +>>>2 +=== 0 +period --now=2010/11/01 10/01 +<<< +>>>1 +global details => + + start: 10-Oct-01 + end: 10-Oct-02 + factor: 1 +>>>2 +=== 0 +period --now=2010/11/01 2009/10 +<<< +>>>1 +global details => + + start: 09-Oct-01 + end: 09-Nov-01 + factor: 1 +>>>2 +=== 0 +period --now=2010/11/01 2009/10/01 +<<< +>>>1 +global details => + + start: 09-Oct-01 + end: 09-Oct-02 + factor: 1 +>>>2 +=== 0 +period --now=2010/11/01 2009 +<<< +>>>1 +global details => + + start: 09-Jan-01 + end: 10-Jan-01 + factor: 1 +>>>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/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/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/F559EC12.test b/test/regress/F559EC12.test index 7900b60d..c8b686db 100644 --- a/test/regress/F559EC12.test +++ b/test/regress/F559EC12.test @@ -3,7 +3,11 @@ 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 --- @@ -20,7 +24,11 @@ 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 --- |