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: | ||||
| 
 | ||||
|      || 2008/01  | ||||
| =====++========= | ||||
|  ... ||       0  | ||||
| -----++--------- | ||||
|      ||       0  | ||||
|      || Jan  | ||||
| =====++===== | ||||
|  ... ||   0  | ||||
| -----++----- | ||||
|      ||   0  | ||||
| >>>=0 | ||||
| 
 | ||||
|  | ||||
| @ -16,11 +16,11 @@ hledger -f balance-multicol.journal balance -p 'monthly in 2013' --no-total | ||||
| >>> | ||||
| Balance changes in 2013q1: | ||||
| 
 | ||||
|                  || 2013/01  2013/02  2013/03  | ||||
| =================++=========================== | ||||
|  assets          ||       0        1        0  | ||||
|  assets:cash     ||       0        1        0  | ||||
|  assets:checking ||       0        0        1  | ||||
|                  || Jan  Feb  Mar  | ||||
| =================++=============== | ||||
|  assets          ||   0    1    0  | ||||
|  assets:cash     ||   0    1    0  | ||||
|  assets:checking ||   0    0    1  | ||||
| >>>=0 | ||||
| 
 | ||||
| # 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: | ||||
| 
 | ||||
|                  || 2013/01  2013/02  2013/03  | ||||
| =================++=========================== | ||||
|  assets:cash     ||       0        1        0  | ||||
|  assets:checking ||       0        0        1  | ||||
| -----------------++--------------------------- | ||||
|                  ||       0        1        1  | ||||
|                  || Jan  Feb  Mar  | ||||
| =================++=============== | ||||
|  assets:cash     ||   0    1    0  | ||||
|  assets:checking ||   0    0    1  | ||||
| -----------------++--------------- | ||||
|                  ||   0    1    1  | ||||
| >>>=0 | ||||
| 
 | ||||
| # 8. cumulative: | ||||
| @ -135,11 +135,11 @@ hledger -f balance-multicol.journal balance -p 'monthly in 2013' --depth 1 | ||||
| >>> | ||||
| Balance changes in 2013q1: | ||||
| 
 | ||||
|         || 2013/01  2013/02  2013/03  | ||||
| ========++=========================== | ||||
|  assets ||       0        2        1  | ||||
| --------++--------------------------- | ||||
|         ||       0        2        1  | ||||
|         || Jan  Feb  Mar  | ||||
| ========++=============== | ||||
|  assets ||   0    2    1  | ||||
| --------++--------------- | ||||
|         ||   0    2    1  | ||||
| >>>=0 | ||||
| 
 | ||||
| # 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: | ||||
| 
 | ||||
|         || 2013/01  2013/02  2013/03  | ||||
| ========++=========================== | ||||
|  assets ||       0        1        1  | ||||
| --------++--------------------------- | ||||
|         ||       0        1        1  | ||||
|         || Jan  Feb  Mar  | ||||
| ========++=============== | ||||
|  assets ||   0    1    1  | ||||
| --------++--------------- | ||||
|         ||   0    1    1  | ||||
| >>>=0 | ||||
| 
 | ||||
| # 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: | ||||
| 
 | ||||
|             || 2013/01  2013/02  2013/03  | ||||
| ============++=========================== | ||||
|  assets     ||       0        2        1  | ||||
|    cash     ||       0        1        0  | ||||
|    checking ||       0        0        1  | ||||
| ------------++--------------------------- | ||||
|             ||       0        2        1  | ||||
|             || Jan  Feb  Mar  | ||||
| ============++=============== | ||||
|  assets     ||   0    2    1  | ||||
|    cash     ||   0    1    0  | ||||
|    checking ||   0    0    1  | ||||
| ------------++--------------- | ||||
|             ||   0    2    1  | ||||
| >>>=0 | ||||
| 
 | ||||
| # 15. | ||||
| @ -232,12 +232,12 @@ hledger -f- balance --monthly --date2 | ||||
| >>> | ||||
| Balance changes in 2014/01: | ||||
| 
 | ||||
|    || 2014/01  | ||||
| ===++========= | ||||
|  a ||       1  | ||||
|  b ||       1  | ||||
| ---++--------- | ||||
|    ||       2  | ||||
|    || Jan  | ||||
| ===++===== | ||||
|  a ||   1  | ||||
|  b ||   1  | ||||
| ---++----- | ||||
|    ||   2  | ||||
| >>>=0 | ||||
| 
 | ||||
| # 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: | ||||
| 
 | ||||
|         || 2014/01  2014/02  | ||||
| ========++================== | ||||
|  after  ||       0        1  | ||||
|  before ||       1        0  | ||||
|  within ||       0        1  | ||||
| --------++------------------ | ||||
|         ||       1        2  | ||||
|         || Jan  Feb  | ||||
| ========++========== | ||||
|  after  ||   0    1  | ||||
|  before ||   1    0  | ||||
|  within ||   0    1  | ||||
| --------++---------- | ||||
|         ||   1    2  | ||||
| >>>=0 | ||||
|  | ||||
| @ -2,11 +2,11 @@ hledger -f balance-multicol.journal balance --pretty-tables -M | ||||
| >>> | ||||
| Balance changes in 2012/12/01-2013/03/31: | ||||
| 
 | ||||
|                  ║ 2012/12  2013/01  2013/02  2013/03  | ||||
| ═════════════════╬════════════════════════════════════ | ||||
|  assets          ║       0        0        1        0  | ||||
|  assets:cash     ║       0        0        1        0  | ||||
|  assets:checking ║      10        0        0        1  | ||||
| ─────────────────╫──────────────────────────────────── | ||||
|                  ║      10        0        2        1  | ||||
|                  ║ Dec  Jan  Feb  Mar  | ||||
| ═════════════════╬════════════════════ | ||||
|  assets          ║   0    0    1    0  | ||||
|  assets:cash     ║   0    0    1    0  | ||||
|  assets:checking ║  10    0    0    1  | ||||
| ─────────────────╫──────────────────── | ||||
|                  ║  10    0    2    1  | ||||
| >>>=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: | ||||
| 
 | ||||
|                   || 2016/12  2017/01  | ||||
| ==================++================== | ||||
|  assets:cash      ||   $-600     $935  | ||||
|  expenses:food    ||       0      $20  | ||||
|  expenses:grocery ||       0      $30  | ||||
|  expenses:housing ||    $600        0  | ||||
|  expenses:leisure ||       0      $15  | ||||
|  income           ||       0   $-1000  | ||||
| ------------------++------------------ | ||||
|                   ||       0        0  | ||||
|                   ||   Dec     Jan  | ||||
| ==================++=============== | ||||
|  assets:cash      || $-600    $935  | ||||
|  expenses:food    ||     0     $20  | ||||
|  expenses:grocery ||     0     $30  | ||||
|  expenses:housing ||  $600       0  | ||||
|  expenses:leisure ||     0     $15  | ||||
|  income           ||     0  $-1000  | ||||
| ------------------++--------------- | ||||
|                   ||     0       0  | ||||
| >>>2 | ||||
| >>>=0 | ||||
| 
 | ||||
|  | ||||
| @ -112,7 +112,7 @@ hledger -f - cashflow -b 2015/11 -e 2015/12 | ||||
| >>> | ||||
| Cashflow Statement 2015/11 | ||||
| 
 | ||||
|                  ||    2015/11  | ||||
|                  ||        Nov  | ||||
| =================++============ | ||||
|  Cash flows      ||             | ||||
| -----------------++------------ | ||||
| @ -147,12 +147,12 @@ hledger -f - cashflow -b 2016/10 -e 2016/11 | ||||
| >>> | ||||
| Cashflow Statement 2016/10 | ||||
| 
 | ||||
|             || 2016/10  | ||||
| ============++========= | ||||
|  Cash flows ||          | ||||
| ------------++--------- | ||||
| ------------++--------- | ||||
|             ||       0  | ||||
|             || Oct  | ||||
| ============++===== | ||||
|  Cash flows ||      | ||||
| ------------++----- | ||||
| ------------++----- | ||||
|             ||   0  | ||||
| >>>2 | ||||
| >>>= 0 | ||||
| 
 | ||||
| @ -161,15 +161,15 @@ hledger -f sample.journal cashflow -p 'monthly in 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  | ||||
| ======================++============================================================================================================ | ||||
|  Cash flows           ||                                                                                                             | ||||
| ----------------------++------------------------------------------------------------------------------------------------------------ | ||||
|  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: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  | ||||
|                       || Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec  | ||||
| ======================++============================================================ | ||||
|  Cash flows           ||                                                             | ||||
| ----------------------++------------------------------------------------------------ | ||||
|  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: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  | ||||
| >>>= 0 | ||||
| 
 | ||||
| # 7. Multicolumn test (historical) | ||||
|  | ||||
| @ -136,7 +136,7 @@ hledger -f - incomestatement -b 2015/10 -e 2015/11 | ||||
| >>> | ||||
| Income Statement 2015/10 | ||||
| 
 | ||||
|                    ||    2015/10  | ||||
|                    ||        Oct  | ||||
| ===================++============ | ||||
|  Revenues          ||             | ||||
| -------------------++------------ | ||||
| @ -178,19 +178,19 @@ hledger -f - incomestatement -b 2016/10 -e 2016/11 | ||||
| >>> | ||||
| Income Statement 2016/10 | ||||
| 
 | ||||
|           || 2016/10  | ||||
| ==========++========= | ||||
|  Revenues ||          | ||||
| ----------++--------- | ||||
| ----------++--------- | ||||
|           ||       0  | ||||
| ==========++========= | ||||
|  Expenses ||          | ||||
| ----------++--------- | ||||
| ----------++--------- | ||||
|           ||       0  | ||||
| ==========++========= | ||||
|  Net:     ||       0  | ||||
|           || Oct  | ||||
| ==========++===== | ||||
|  Revenues ||      | ||||
| ----------++----- | ||||
| ----------++----- | ||||
|           ||   0  | ||||
| ==========++===== | ||||
|  Expenses ||      | ||||
| ----------++----- | ||||
| ----------++----- | ||||
|           ||   0  | ||||
| ==========++===== | ||||
|  Net:     ||   0  | ||||
| >>>2 | ||||
| >>>= 0 | ||||
| 
 | ||||
| @ -220,23 +220,23 @@ hledger -f sample.journal incomestatement -p 'monthly in 2008' -AT | ||||
| >>> | ||||
| 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  | ||||
| ===================++============================================================================================================================== | ||||
|  Revenues          ||                                                                                                                               | ||||
| -------------------++------------------------------------------------------------------------------------------------------------------------------ | ||||
|  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  | ||||
| -------------------++------------------------------------------------------------------------------------------------------------------------------ | ||||
|                    ||      $1        0        0        0        0       $1        0        0        0        0        0        0       $2        0  | ||||
| ===================++============================================================================================================================== | ||||
|  Expenses          ||                                                                                                                               | ||||
| -------------------++------------------------------------------------------------------------------------------------------------------------------ | ||||
|  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  | ||||
| -------------------++------------------------------------------------------------------------------------------------------------------------------ | ||||
|                    ||       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  | ||||
|                    || Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec    Total  Average  | ||||
| ===================++============================================================================== | ||||
|  Revenues          ||                                                                               | ||||
| -------------------++------------------------------------------------------------------------------ | ||||
|  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  | ||||
| -------------------++------------------------------------------------------------------------------ | ||||
|                    ||  $1    0    0    0    0   $1    0    0    0    0    0    0       $2        0  | ||||
| ===================++============================================================================== | ||||
|  Expenses          ||                                                                               | ||||
| -------------------++------------------------------------------------------------------------------ | ||||
|  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  | ||||
| -------------------++------------------------------------------------------------------------------ | ||||
|                    ||   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  | ||||
| >>>= 0 | ||||
| 
 | ||||
| # 7. Multicolumn test (historical) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user