test that order of include files is maintained (#949)

This commit is contained in:
Simon Michael 2019-01-15 12:58:28 -08:00
parent 274b1c12a1
commit 95643affad

View File

@ -71,3 +71,19 @@ include ~/included.journal
>>>2 >>>2
>>>=0 >>>=0
# 7. test that order of include files is maintained
printf 'include _b\n' >_a; touch _b; hledger -f _a stats | grep _ | sed -e 's%.*/%%'; rm -rf _a _b
>>>
_a
_b
>>>2
>>>=0
# 8. and with --auto code path
printf 'include _b\n=\n' >_a; touch _b; hledger -f _a stats --auto | grep _ | sed -e 's%.*/%%'; rm -rf _a _b
>>>
_a
_b
>>>2
>>>=0