;dev: tests for amt:/cur: with balance commands [#2396]

This commit is contained in:
Simon Michael 2025-06-03 07:48:38 -10:00
parent 455db07495
commit bcde959105
2 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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