test: accounts with zero balance should be elided even when multiple commodities are used

This commit is contained in:
Dmitry Astapov 2011-04-19 20:22:14 +00:00
parent 1c7ad7f421
commit 906e2659dd

View File

@ -1,3 +1,4 @@
#
bin/hledger -f - balance
<<<
2009/1/1 x
@ -8,3 +9,29 @@ bin/hledger -f - balance
€-1 b
--------------------
€0
# One commodity. Balance should be elided
bin/hledger -f - balance
<<<
2010/04/01 tr1
a 16$
b -16$
2010/04/02 tr2
a -16$
b 16$
>>>
--------------------
0
# Two commodities. Balance should also be elided
bin/hledger -f - balance
<<<
2010/04/01 tr1
a 16$ @@ 10€
b -10€
2010/04/02 tr2
a -16$
b 10€ @@ 16$
>>>
--------------------
0