hledger/tests/94.test
Simon Michael f54e3299b9 94: fix 0.19 regression showing wrong total balance with balance --flat
and distinguish better between account depth and item indent level
2012-12-04 01:07:04 +00:00

32 lines
447 B
Plaintext

# issue 94: total balance should be that of top-level accounts, with and without --flat
# 1.
hledgerdev -f - balance
<<<
1/1
(a) 1
1/1
(a:aa) 1
>>>
2 a
1 aa
--------------------
2
>>>= 0
# 2.
hledgerdev -f - balance --flat
<<<
1/1
(a) 1
1/1
(a:aa) 1
>>>
2 a
1 a:aa
--------------------
2
>>>= 0