From fbf8eda58f9ec8aec12c57563ec1a5534ce5511b Mon Sep 17 00:00:00 2001 From: Dmitry Astapov Date: Mon, 25 Apr 2011 18:37:59 +0000 Subject: [PATCH] One more test for implicit commodity pricing (test-for-failure) --- tests/prices.test | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/prices.test b/tests/prices.test index 13b3d2159..83866d6dc 100644 --- a/tests/prices.test +++ b/tests/prices.test @@ -161,3 +161,12 @@ bin/hledger -f - balance 16$ -10£ >>>=0 +# 12. When commodity price is specified implicitly, transaction should +# NOT be considered balanced out when BOTH amounts are negative +bin/hledger -f - balance +<<< +2011/01/01 x + a -10£ + b -16$ +>>> +>>>=1