update functional tests for new monthly headings
This commit is contained in:
		
							parent
							
								
									64e06750eb
								
							
						
					
					
						commit
						10a4392b24
					
				| @ -18,10 +18,10 @@ hledger -f sample.journal balance -M -e 2008/4 --depth 0 | |||||||
| >>> | >>> | ||||||
| Balance changes in 2008/01: | Balance changes in 2008/01: | ||||||
| 
 | 
 | ||||||
|      || 2008/01  |      || Jan  | ||||||
| =====++========= | =====++===== | ||||||
|  ... ||       0  |  ... ||   0  | ||||||
| -----++--------- | -----++----- | ||||||
|      ||       0  |      ||   0  | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -16,11 +16,11 @@ hledger -f balance-multicol.journal balance -p 'monthly in 2013' --no-total | |||||||
| >>> | >>> | ||||||
| Balance changes in 2013q1: | Balance changes in 2013q1: | ||||||
| 
 | 
 | ||||||
|                  || 2013/01  2013/02  2013/03  |                  || Jan  Feb  Mar  | ||||||
| =================++=========================== | =================++=============== | ||||||
|  assets          ||       0        1        0  |  assets          ||   0    1    0  | ||||||
|  assets:cash     ||       0        1        0  |  assets:cash     ||   0    1    0  | ||||||
|  assets:checking ||       0        0        1  |  assets:checking ||   0    0    1  | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 3. With --empty, includes leading/trailing empty periods | # 3. With --empty, includes leading/trailing empty periods | ||||||
| @ -93,12 +93,12 @@ hledger -f balance-multicol.journal balance -p 'monthly in 2013' not:assets$ | |||||||
| >>> | >>> | ||||||
| Balance changes in 2013q1: | Balance changes in 2013q1: | ||||||
| 
 | 
 | ||||||
|                  || 2013/01  2013/02  2013/03  |                  || Jan  Feb  Mar  | ||||||
| =================++=========================== | =================++=============== | ||||||
|  assets:cash     ||       0        1        0  |  assets:cash     ||   0    1    0  | ||||||
|  assets:checking ||       0        0        1  |  assets:checking ||   0    0    1  | ||||||
| -----------------++--------------------------- | -----------------++--------------- | ||||||
|                  ||       0        1        1  |                  ||   0    1    1  | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 8. cumulative: | # 8. cumulative: | ||||||
| @ -135,11 +135,11 @@ hledger -f balance-multicol.journal balance -p 'monthly in 2013' --depth 1 | |||||||
| >>> | >>> | ||||||
| Balance changes in 2013q1: | Balance changes in 2013q1: | ||||||
| 
 | 
 | ||||||
|         || 2013/01  2013/02  2013/03  |         || Jan  Feb  Mar  | ||||||
| ========++=========================== | ========++=============== | ||||||
|  assets ||       0        2        1  |  assets ||   0    2    1  | ||||||
| --------++--------------------------- | --------++--------------- | ||||||
|         ||       0        2        1  |         ||   0    2    1  | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 11. As above, but postings in the top-level assets account have been excluded. | # 11. As above, but postings in the top-level assets account have been excluded. | ||||||
| @ -147,11 +147,11 @@ hledger -f balance-multicol.journal balance -p 'monthly in 2013' --depth 1 asset | |||||||
| >>> | >>> | ||||||
| Balance changes in 2013q1: | Balance changes in 2013q1: | ||||||
| 
 | 
 | ||||||
|         || 2013/01  2013/02  2013/03  |         || Jan  Feb  Mar  | ||||||
| ========++=========================== | ========++=============== | ||||||
|  assets ||       0        1        1  |  assets ||   0    1    1  | ||||||
| --------++--------------------------- | --------++--------------- | ||||||
|         ||       0        1        1  |         ||   0    1    1  | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 12. A cumulative balance report with depth limiting. | # 12. A cumulative balance report with depth limiting. | ||||||
| @ -183,13 +183,13 @@ hledger -f balance-multicol.journal balance -p 'monthly in 2013' --tree | |||||||
| >>> | >>> | ||||||
| Balance changes in 2013q1: | Balance changes in 2013q1: | ||||||
| 
 | 
 | ||||||
|             || 2013/01  2013/02  2013/03  |             || Jan  Feb  Mar  | ||||||
| ============++=========================== | ============++=============== | ||||||
|  assets     ||       0        2        1  |  assets     ||   0    2    1  | ||||||
|    cash     ||       0        1        0  |    cash     ||   0    1    0  | ||||||
|    checking ||       0        0        1  |    checking ||   0    0    1  | ||||||
| ------------++--------------------------- | ------------++--------------- | ||||||
|             ||       0        2        1  |             ||   0    2    1  | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 15. | # 15. | ||||||
| @ -232,12 +232,12 @@ hledger -f- balance --monthly --date2 | |||||||
| >>> | >>> | ||||||
| Balance changes in 2014/01: | Balance changes in 2014/01: | ||||||
| 
 | 
 | ||||||
|    || 2014/01  |    || Jan  | ||||||
| ===++========= | ===++===== | ||||||
|  a ||       1  |  a ||   1  | ||||||
|  b ||       1  |  b ||   1  | ||||||
| ---++--------- | ---++----- | ||||||
|    ||       2  |    ||   2  | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 18. All matched postings in the displayed intervals should be reported on. | # 18. All matched postings in the displayed intervals should be reported on. | ||||||
| @ -255,11 +255,11 @@ hledger -f- balance -p 'monthly 2014/1/10-2014/2/20' | |||||||
| >>> | >>> | ||||||
| Balance changes in 2014/01/01-2014/02/28: | Balance changes in 2014/01/01-2014/02/28: | ||||||
| 
 | 
 | ||||||
|         || 2014/01  2014/02  |         || Jan  Feb  | ||||||
| ========++================== | ========++========== | ||||||
|  after  ||       0        1  |  after  ||   0    1  | ||||||
|  before ||       1        0  |  before ||   1    0  | ||||||
|  within ||       0        1  |  within ||   0    1  | ||||||
| --------++------------------ | --------++---------- | ||||||
|         ||       1        2  |         ||   1    2  | ||||||
| >>>=0 | >>>=0 | ||||||
|  | |||||||
| @ -2,11 +2,11 @@ hledger -f balance-multicol.journal balance --pretty-tables -M | |||||||
| >>> | >>> | ||||||
| Balance changes in 2012/12/01-2013/03/31: | Balance changes in 2012/12/01-2013/03/31: | ||||||
| 
 | 
 | ||||||
|                  ║ 2012/12  2013/01  2013/02  2013/03  |                  ║ Dec  Jan  Feb  Mar  | ||||||
| ═════════════════╬════════════════════════════════════ | ═════════════════╬════════════════════ | ||||||
|  assets          ║       0        0        1        0  |  assets          ║   0    0    1    0  | ||||||
|  assets:cash     ║       0        0        1        0  |  assets:cash     ║   0    0    1    0  | ||||||
|  assets:checking ║      10        0        0        1  |  assets:checking ║  10    0    0    1  | ||||||
| ─────────────────╫──────────────────────────────────── | ─────────────────╫──────────────────── | ||||||
|                  ║      10        0        2        1  |                  ║  10    0    2    1  | ||||||
| >>>=0 | >>>=0 | ||||||
|  | |||||||
| @ -14,16 +14,16 @@ hledger bal -M -b 2016-11 -e 2017-02 -f - --forecast | |||||||
| >>> | >>> | ||||||
| Balance changes in 2016/12/01-2017/01/31: | Balance changes in 2016/12/01-2017/01/31: | ||||||
| 
 | 
 | ||||||
|                   || 2016/12  2017/01  |                   ||   Dec     Jan  | ||||||
| ==================++================== | ==================++=============== | ||||||
|  assets:cash      ||   $-600     $935  |  assets:cash      || $-600    $935  | ||||||
|  expenses:food    ||       0      $20  |  expenses:food    ||     0     $20  | ||||||
|  expenses:grocery ||       0      $30  |  expenses:grocery ||     0     $30  | ||||||
|  expenses:housing ||    $600        0  |  expenses:housing ||  $600       0  | ||||||
|  expenses:leisure ||       0      $15  |  expenses:leisure ||     0     $15  | ||||||
|  income           ||       0   $-1000  |  income           ||     0  $-1000  | ||||||
| ------------------++------------------ | ------------------++--------------- | ||||||
|                   ||       0        0  |                   ||     0       0  | ||||||
| >>>2 | >>>2 | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -112,7 +112,7 @@ hledger -f - cashflow -b 2015/11 -e 2015/12 | |||||||
| >>> | >>> | ||||||
| Cashflow Statement 2015/11 | Cashflow Statement 2015/11 | ||||||
| 
 | 
 | ||||||
|                  ||    2015/11  |                  ||        Nov  | ||||||
| =================++============ | =================++============ | ||||||
|  Cash flows      ||             |  Cash flows      ||             | ||||||
| -----------------++------------ | -----------------++------------ | ||||||
| @ -147,12 +147,12 @@ hledger -f - cashflow -b 2016/10 -e 2016/11 | |||||||
| >>> | >>> | ||||||
| Cashflow Statement 2016/10 | Cashflow Statement 2016/10 | ||||||
| 
 | 
 | ||||||
|             || 2016/10  |             || Oct  | ||||||
| ============++========= | ============++===== | ||||||
|  Cash flows ||          |  Cash flows ||      | ||||||
| ------------++--------- | ------------++----- | ||||||
| ------------++--------- | ------------++----- | ||||||
|             ||       0  |             ||   0  | ||||||
| >>>2 | >>>2 | ||||||
| >>>= 0 | >>>= 0 | ||||||
| 
 | 
 | ||||||
| @ -161,15 +161,15 @@ hledger -f sample.journal cashflow -p 'monthly in 2008' | |||||||
| >>> | >>> | ||||||
| Cashflow Statement 2008 | Cashflow Statement 2008 | ||||||
| 
 | 
 | ||||||
|                       || 2008/01  2008/02  2008/03  2008/04  2008/05  2008/06  2008/07  2008/08  2008/09  2008/10  2008/11  2008/12  |                       || Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec  | ||||||
| ======================++============================================================================================================ | ======================++============================================================ | ||||||
|  Cash flows           ||                                                                                                             |  Cash flows           ||                                                             | ||||||
| ----------------------++------------------------------------------------------------------------------------------------------------ | ----------------------++------------------------------------------------------------ | ||||||
|  assets:bank:checking ||      $1        0        0        0        0        0        0        0        0        0        0      $-1  |  assets:bank:checking ||  $1    0    0    0    0    0    0    0    0    0    0  $-1  | ||||||
|  assets:bank:saving   ||       0        0        0        0        0       $1        0        0        0        0        0        0  |  assets:bank:saving   ||   0    0    0    0    0   $1    0    0    0    0    0    0  | ||||||
|  assets:cash          ||       0        0        0        0        0      $-2        0        0        0        0        0        0  |  assets:cash          ||   0    0    0    0    0  $-2    0    0    0    0    0    0  | ||||||
| ----------------------++------------------------------------------------------------------------------------------------------------ | ----------------------++------------------------------------------------------------ | ||||||
|                       ||      $1        0        0        0        0      $-1        0        0        0        0        0      $-1  |                       ||  $1    0    0    0    0  $-1    0    0    0    0    0  $-1  | ||||||
| >>>= 0 | >>>= 0 | ||||||
| 
 | 
 | ||||||
| # 7. Multicolumn test (historical) | # 7. Multicolumn test (historical) | ||||||
|  | |||||||
| @ -136,7 +136,7 @@ hledger -f - incomestatement -b 2015/10 -e 2015/11 | |||||||
| >>> | >>> | ||||||
| Income Statement 2015/10 | Income Statement 2015/10 | ||||||
| 
 | 
 | ||||||
|                    ||    2015/10  |                    ||        Oct  | ||||||
| ===================++============ | ===================++============ | ||||||
|  Revenues          ||             |  Revenues          ||             | ||||||
| -------------------++------------ | -------------------++------------ | ||||||
| @ -178,19 +178,19 @@ hledger -f - incomestatement -b 2016/10 -e 2016/11 | |||||||
| >>> | >>> | ||||||
| Income Statement 2016/10 | Income Statement 2016/10 | ||||||
| 
 | 
 | ||||||
|           || 2016/10  |           || Oct  | ||||||
| ==========++========= | ==========++===== | ||||||
|  Revenues ||          |  Revenues ||      | ||||||
| ----------++--------- | ----------++----- | ||||||
| ----------++--------- | ----------++----- | ||||||
|           ||       0  |           ||   0  | ||||||
| ==========++========= | ==========++===== | ||||||
|  Expenses ||          |  Expenses ||      | ||||||
| ----------++--------- | ----------++----- | ||||||
| ----------++--------- | ----------++----- | ||||||
|           ||       0  |           ||   0  | ||||||
| ==========++========= | ==========++===== | ||||||
|  Net:     ||       0  |  Net:     ||   0  | ||||||
| >>>2 | >>>2 | ||||||
| >>>= 0 | >>>= 0 | ||||||
| 
 | 
 | ||||||
| @ -220,23 +220,23 @@ hledger -f sample.journal incomestatement -p 'monthly in 2008' -AT | |||||||
| >>> | >>> | ||||||
| Income Statement 2008 | Income Statement 2008 | ||||||
| 
 | 
 | ||||||
|                    || 2008/01  2008/02  2008/03  2008/04  2008/05  2008/06  2008/07  2008/08  2008/09  2008/10  2008/11  2008/12    Total  Average  |                    || Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec    Total  Average  | ||||||
| ===================++============================================================================================================================== | ===================++============================================================================== | ||||||
|  Revenues          ||                                                                                                                               |  Revenues          ||                                                                               | ||||||
| -------------------++------------------------------------------------------------------------------------------------------------------------------ | -------------------++------------------------------------------------------------------------------ | ||||||
|  income:gifts      ||       0        0        0        0        0       $1        0        0        0        0        0        0       $1        0  |  income:gifts      ||   0    0    0    0    0   $1    0    0    0    0    0    0       $1        0  | ||||||
|  income:salary     ||      $1        0        0        0        0        0        0        0        0        0        0        0       $1        0  |  income:salary     ||  $1    0    0    0    0    0    0    0    0    0    0    0       $1        0  | ||||||
| -------------------++------------------------------------------------------------------------------------------------------------------------------ | -------------------++------------------------------------------------------------------------------ | ||||||
|                    ||      $1        0        0        0        0       $1        0        0        0        0        0        0       $2        0  |                    ||  $1    0    0    0    0   $1    0    0    0    0    0    0       $2        0  | ||||||
| ===================++============================================================================================================================== | ===================++============================================================================== | ||||||
|  Expenses          ||                                                                                                                               |  Expenses          ||                                                                               | ||||||
| -------------------++------------------------------------------------------------------------------------------------------------------------------ | -------------------++------------------------------------------------------------------------------ | ||||||
|  expenses:food     ||       0        0        0        0        0       $1        0        0        0        0        0        0       $1        0  |  expenses:food     ||   0    0    0    0    0   $1    0    0    0    0    0    0       $1        0  | ||||||
|  expenses:supplies ||       0        0        0        0        0       $1        0        0        0        0        0        0       $1        0  |  expenses:supplies ||   0    0    0    0    0   $1    0    0    0    0    0    0       $1        0  | ||||||
| -------------------++------------------------------------------------------------------------------------------------------------------------------ | -------------------++------------------------------------------------------------------------------ | ||||||
|                    ||       0        0        0        0        0       $2        0        0        0        0        0        0       $2        0  |                    ||   0    0    0    0    0   $2    0    0    0    0    0    0       $2        0  | ||||||
| ===================++============================================================================================================================== | ===================++============================================================================== | ||||||
|  Net:              ||      $1        0        0        0        0      $-1        0        0        0        0        0        0        0        0  |  Net:              ||  $1    0    0    0    0  $-1    0    0    0    0    0    0        0        0  | ||||||
| >>>= 0 | >>>= 0 | ||||||
| 
 | 
 | ||||||
| # 7. Multicolumn test (historical) | # 7. Multicolumn test (historical) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user