hledger/tests/balance/format.test

35 lines
833 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$ hledger -f sample.journal balance --tree --format="%30(account) %-.20(total)"
>
assets $-1
bank:saving $1
cash $-2
expenses $2
food $1
supplies $1
income $-2
gifts $-1
salary $-1
liabilities:debts $1
----------------------------------
0
>= 0
<
2020-09-01 Test
a -500 AAA
b
# Test too-small maximum balance widths
$ hledger -f - balance -N --format="%7.7(total) %(account)"
>
1 mor.. a
500 AAA b
>= 0
# Check that maximum balance widths works with colour
$ hledger -f - balance -N --format="%8.8(total) %(account)" --color=yes
>
-500 AAA a
500 AAA b
>= 0