From 222a26c306fc7cf7f8ea60ccfd52628aae5e85e5 Mon Sep 17 00:00:00 2001 From: Dmitry Astapov Date: Tue, 19 Apr 2011 20:15:11 +0000 Subject: [PATCH] test: when total balance is zero, it should stay zero regardless of "--basis" --- tests/prices.test | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/prices.test b/tests/prices.test index be87da26d..c587efd5e 100644 --- a/tests/prices.test +++ b/tests/prices.test @@ -134,3 +134,16 @@ bin/hledger -f - balance -B -------------------- $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