test: when total balance is zero, it should stay zero regardless of "--basis"
This commit is contained in:
parent
ef0f054230
commit
222a26c306
@ -134,3 +134,16 @@ bin/hledger -f - balance -B
|
|||||||
--------------------
|
--------------------
|
||||||
$0
|
$0
|
||||||
>>>=0
|
>>>=0
|
||||||
|
# 10. transaction in two commodities should balance out properly
|
||||||
|
bin/hledger -f - balance --basis
|
||||||
|
<<<
|
||||||
|
2011/01/01 x
|
||||||
|
a 10£ @@ 16$
|
||||||
|
b
|
||||||
|
>>>
|
||||||
|
16$ a
|
||||||
|
-16$ b
|
||||||
|
--------------------
|
||||||
|
0$
|
||||||
|
|
||||||
|
>>>=0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user