mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
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
|
||||
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 [
|
||||
|
Loading…
Reference in New Issue
Block a user