hledger/tests/balance/multicommodity.test

64 lines
2.1 KiB
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.

# 1. In tabular balance reports, cap the maximum width and elide if sufficiently large
<
2020-01-01
(a) 1.00A
(a) 1.00B
(a) 1.00C
(a) 1.00D
(a) 1.00E
(a) 1.00F
$ hledger -f- bal -Y
Balance changes in 2020:
|| 2020
===++===============================
a || 1.00A, 1.00B, 1.00C, 3 more..
---++-------------------------------
|| 1.00A, 1.00B, 1.00C, 3 more..
# 2. Unless --no-elide is used.
$ hledger -f- bal -Y --no-elide
Balance changes in 2020:
|| 2020
===++==========================================
a || 1.00A, 1.00B, 1.00C, 1.00D, 1.00E, 1.00F
---++------------------------------------------
|| 1.00A, 1.00B, 1.00C, 1.00D, 1.00E, 1.00F
<
2020-02-22
26018c6e:ced6cffd:c3c182f1:7b433efb $ 9.41
ea50865f:3bfb86b7:bf72f75a:a7cad1ac $ -10.00
ea50865f:325566ed:216fec7e:7b433efb $ 0.59
2020-02-27
26018c6e:ced6cffd:c3c182f1:7b433efb £ -19.16
ea50865f:325566ed:216fec7e:7b433efb £ 0.91
ea50865f:325566ed:47134948 £ 18.25
2020-04-12
26018c6e:ced6cffd:c3c182f1:7b433efb € 9.21
ea50865f:3bfb86b7:bf72f75a:a7cad1ac € -10.00
ea50865f:325566ed:216fec7e:7b433efb € 0.79
2020-05-16
26018c6e:ced6cffd:c3c182f1:7b433efb C$ 24.56
ea50865f:3bfb86b7:bf72f75a:a7cad1ac C$ -26.00
ea50865f:325566ed:216fec7e:7b433efb C$ 1.44
# 3. Make sure all amounts up to the largest fit
$ hledger -f- bal -Y --color=yes
Balance changes in 2020:
|| 2020
=====================================++=================================
26018c6e:ced6cffd:c3c182f1:7b433efb || $ 9.41, C$ 24.56, 2 more..
ea50865f:325566ed:216fec7e:7b433efb || $ 0.59, C$ 1.44, £ 0.91, € 0.79
ea50865f:325566ed:47134948 || £ 18.25
ea50865f:3bfb86b7:bf72f75a:a7cad1ac || $ -10.00, C$ -26.00, € -10.00
-------------------------------------++---------------------------------
|| 0
>=0