add a test for account filtering affecting balance report totals
This commit is contained in:
		
							parent
							
								
									2388af0150
								
							
						
					
					
						commit
						7a71f137ee
					
				
							
								
								
									
										10
									
								
								Tests.hs
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Tests.hs
									
									
									
									
									
								
							| @ -198,6 +198,16 @@ balancecommandtests = TestList [ | |||||||
|   do  |   do  | ||||||
|     l <- ledgerfromfile "sample.ledger" |     l <- ledgerfromfile "sample.ledger" | ||||||
|     assertequal "" $ showBalanceReport [] ["-e"] l |     assertequal "" $ showBalanceReport [] ["-e"] l | ||||||
|  |  , | ||||||
|  |   "balance report negative patterns affect totals" ~:  | ||||||
|  |   do  | ||||||
|  |     l <- ledgerfromfile "sample.ledger" | ||||||
|  |     assertequal ( | ||||||
|  |      "                  $1  expenses\n" ++ | ||||||
|  |      "--------------------\n" ++ | ||||||
|  |      "                  $1\n" ++ | ||||||
|  |      "") | ||||||
|  |      $ showBalanceReport [] ["expenses","-food"] l | ||||||
|  ] |  ] | ||||||
| 
 | 
 | ||||||
| registercommandtests = TestList [ | registercommandtests = TestList [ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user