hledger/tests/balance/373-layout.test
2016-09-21 09:34:01 -07:00

65 lines
1.2 KiB
Plaintext

# Indenting & eliding tests, cf issue 373.
# Documenting current behaviour, some of which looks wrong.
#
#$ ledger bal
# 1 1:2:3
# 1 4:5
#--------------------
# 0
hledger -f 373.journal bal
>>>
0 1:2
1 3
0 4
1 5
--------------------
0
>>>= 0
#
#$ ledger bal --flat
# 1 1:2:3
# 1 1:2:3:4:5
#--------------------
# 0
hledger -f 373.journal bal --flat
>>>
-1 1:2
1 1:2:3
-1 1:2:3:4
1 1:2:3:4:5
--------------------
0
>>>= 0
#
hledger -f 373.journal bal -Y
>>>
Balance changes in 2015:
|| 2015
===========++=======
1:2 || -1
1:2:3 || 1
1:2:3:4 || -1
1:2:3:4:5 || 1
-----------++-------
|| 0
>>>=0
#
hledger -f 373.journal bal -Y --tree
>>>
Balance changes in 2015:
|| 2015
===========++=======
3 || 1
5 || 1
-----------++-------
||
>>>=0