add a test demonstrating negative account pattern bug
This commit is contained in:
		
							parent
							
								
									7a71f137ee
								
							
						
					
					
						commit
						243d5c3086
					
				
							
								
								
									
										8
									
								
								Tests.hs
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Tests.hs
									
									
									
									
									
								
							| @ -126,6 +126,14 @@ balancecommandtests = TestList [ | ||||
|      \                  $1  liabilities:debts\n\ | ||||
|      \" --" | ||||
|      (showBalanceReport [SubTotal] [] l) | ||||
|  , | ||||
|   "balance report with negative account patterns" ~: do | ||||
|     l <- ledgerfromfile "sample.ledger" | ||||
|     assertequal ( | ||||
|      "                  $2  expenses\n" ++ | ||||
|      "                 $-2  income\n" ++ | ||||
|      "") | ||||
|      (showBalanceReport [] ["-assets","-abiliti"] l) | ||||
|  , | ||||
|   "balance report with account pattern o" ~: do | ||||
|     l <- ledgerfromfile "sample.ledger" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user