;dev: tests for amt:/cur: with balance commands [#2396]
This commit is contained in:
parent
455db07495
commit
bcde959105
12
hledger/test/balance/balance-amt.test
Normal file
12
hledger/test/balance/balance-amt.test
Normal 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
|
||||
12
hledger/test/balance/balance-cur.test
Normal file
12
hledger/test/balance/balance-cur.test
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user