add a test for account filtering affecting balance report totals

This commit is contained in:
Simon Michael 2008-11-22 04:50:23 +00:00
parent 2388af0150
commit 7a71f137ee

View File

@ -198,6 +198,16 @@ balancecommandtests = TestList [
do
l <- ledgerfromfile "sample.ledger"
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 [