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