hledger/hledger/test/print/print.test
Simon Michael b663822b88 fix: print: ignore --depth entirely
Until now, a depth limit caused print to show only transactions referencing accounts as deep or deeper than that.
2024-12-09 15:37:30 -10:00

41 lines
645 B
Plaintext

# * print command
# ** 1. print preserves the commodity symbol of zero amounts.
<
2023-01-01
(a) 0 A @ 0 B == 0 A @ 0 B
$ hledger -f- print
2023-01-01
(a) 0 A @ 0 B == 0 A @ 0 B
>=
# ** 2. The inferred balancing amount for zeros in multiple commodities
# is preserved and shown accurately, with a posting for each commodity.
<
2023-01-01
a 0 A
b 0 B
z
$ hledger -f- print -x
2023-01-01
a 0 A
b 0 B
z 0 A
z 0 B
>=
# ** 3. --depth does not affect print.
<
2023-01-01
A:AA 0 A
$ hledger -f- print --depth 1
2023-01-01
A:AA 0 A
>=