diff --git a/tests/eliding-balance.test b/tests/eliding-balance.test index 3c043e531..84a1c64c8 100644 --- a/tests/eliding-balance.test +++ b/tests/eliding-balance.test @@ -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