From 906e2659dd95150f43beee435b0e71c3a27a6c5a Mon Sep 17 00:00:00 2001 From: Dmitry Astapov Date: Tue, 19 Apr 2011 20:22:14 +0000 Subject: [PATCH] test: accounts with zero balance should be elided even when multiple commodities are used --- tests/eliding-balance.test | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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