hledger/tests/balance/format.test

35 lines
833 B
Plaintext
Raw Normal View History

$ hledger -f sample.journal balance --tree --format="%30(account) %-.20(total)"
>
2011-06-21 01:33:26 +04:00
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