bs,is,cf: add functional tests, fix bs infinite loop #393
This commit is contained in:
		
							parent
							
								
									ef961f51ac
								
							
						
					
					
						commit
						5ea088d1ca
					
				| @ -58,8 +58,7 @@ Total: | |||||||
| withoutBeginDate :: ReportOpts -> ReportOpts | withoutBeginDate :: ReportOpts -> ReportOpts | ||||||
| withoutBeginDate ropts@ReportOpts{..} = ropts{period_=p} | withoutBeginDate ropts@ReportOpts{..} = ropts{period_=p} | ||||||
|   where |   where | ||||||
|     p = dateSpanAsPeriod $ DateSpan Nothing e |     p = dateSpanAsPeriod $ DateSpan Nothing (periodEnd period_) | ||||||
|     e = periodEnd p |  | ||||||
| 
 | 
 | ||||||
| tests_Hledger_Cli_Balancesheet :: Test | tests_Hledger_Cli_Balancesheet :: Test | ||||||
| tests_Hledger_Cli_Balancesheet = TestList | tests_Hledger_Cli_Balancesheet = TestList | ||||||
|  | |||||||
							
								
								
									
										23
									
								
								tests/balancesheet/balancesheet.test
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								tests/balancesheet/balancesheet.test
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | |||||||
|  | # 1. | ||||||
|  | hledger -f - balancesheet | ||||||
|  | <<< | ||||||
|  | 2016/1/1 | ||||||
|  |   assets  1 | ||||||
|  |   b | ||||||
|  | >>> | ||||||
|  | Balance Sheet | ||||||
|  | 
 | ||||||
|  | Assets: | ||||||
|  |                    1  assets | ||||||
|  | -------------------- | ||||||
|  |                    1 | ||||||
|  | 
 | ||||||
|  | Liabilities: | ||||||
|  | -------------------- | ||||||
|  |                    0 | ||||||
|  | 
 | ||||||
|  | Total: | ||||||
|  | -------------------- | ||||||
|  |                    1 | ||||||
|  | >>>2 | ||||||
|  | >>>= 0 | ||||||
							
								
								
									
										19
									
								
								tests/cashflow/cashflow.test
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tests/cashflow/cashflow.test
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | |||||||
|  | # 1. | ||||||
|  | hledger -f - cashflow | ||||||
|  | <<< | ||||||
|  | 2016/1/1 | ||||||
|  |   assets  1 | ||||||
|  |   b | ||||||
|  | >>> | ||||||
|  | Cashflow Statement | ||||||
|  | 
 | ||||||
|  | Cash flows: | ||||||
|  |                    1  assets | ||||||
|  | -------------------- | ||||||
|  |                    1 | ||||||
|  | 
 | ||||||
|  | Total: | ||||||
|  | -------------------- | ||||||
|  |                    1 | ||||||
|  | >>>2 | ||||||
|  | >>>= 0 | ||||||
							
								
								
									
										23
									
								
								tests/incomestatement/incomestatement.test
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								tests/incomestatement/incomestatement.test
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | |||||||
|  | # 1. | ||||||
|  | hledger -f - incomestatement | ||||||
|  | <<< | ||||||
|  | 2016/1/1 | ||||||
|  |   income  1 | ||||||
|  |   b | ||||||
|  | >>> | ||||||
|  | Income Statement | ||||||
|  | 
 | ||||||
|  | Revenues: | ||||||
|  |                    1  income | ||||||
|  | -------------------- | ||||||
|  |                    1 | ||||||
|  | 
 | ||||||
|  | Expenses: | ||||||
|  | -------------------- | ||||||
|  |                    0 | ||||||
|  | 
 | ||||||
|  | Total: | ||||||
|  | -------------------- | ||||||
|  |                    1 | ||||||
|  | >>>2 | ||||||
|  | >>>= 0 | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user