hledger/tests/register/colour.test
Stephen Morgan a838366c9d cli: Ensure register reports are correctly aligned for negative numbers.
This uses the new showMixed* function for the register report. This
fixes some misaligned negative numbers which appeared in one of the
earlier commits, and adds a test for it.
2020-11-04 14:25:20 +11:00

460 B

2019-1-1
(a) -1.0
 
2019-1-2
(a) 1
 
2019-1-3
(a) 1
 
2019-1-4
(a) 1
 
$ hledger -f- register --color always
2019-01-01 (a) -1.0 -1.0
2019-01-02 (a) 1.0 0
2019-01-03 (a) 1.0 1.0
2019-01-04 (a) 1.0 2.0
>=