diff --git a/hledger/test/balance/balance-amt.test b/hledger/test/balance/balance-amt.test new file mode 100644 index 000000000..7352dc496 --- /dev/null +++ b/hledger/test/balance/balance-amt.test @@ -0,0 +1,12 @@ +# * balance commands with amt: query + +< +2025-01-01 + a 1 A + a 1 B + b + +# ** 1. amt: filters postings correctly +$ hledger -f - balance -N 'amt:>0' + 1 A + 1 B a diff --git a/hledger/test/balance/balance-cur.test b/hledger/test/balance/balance-cur.test new file mode 100644 index 000000000..30ad48430 --- /dev/null +++ b/hledger/test/balance/balance-cur.test @@ -0,0 +1,12 @@ +# * balance commands with cur: query + +< +2025-01-01 + a 1 A + a 1 B + b + +# ** 1. cur: filters postings correctly +$ hledger -f - balance -N cur:A + 1 A a + -1 A b