;dev: test: multiple-files: convert to latest shelltest format

This commit is contained in:
Simon Michael 2024-06-10 08:10:06 +01:00
parent 8d1ad8a3fe
commit 7804685b09

View File

@ -1,8 +1,7 @@
# * multiple input files
# ** 1. all data files on the command line should be read
hledger is -f personal.journal -f business.journal
>>>
$ hledger is -f personal.journal -f business.journal
Income Statement 2014-01-01..2014-01-02
|| 2014-01-01..2014-01-02
@ -20,12 +19,9 @@ Income Statement 2014-01-01..2014-01-02
|| $2
==========================++========================
Net: || $-2
>>>2
>>>=0
# ** 2. aliases etc. in files currently don't carry over to subsequent files
hledger print -f personal.journal -f business.journal -f alias.journal -f personal.journal
>>>
$ hledger print -f personal.journal -f business.journal -f alias.journal -f personal.journal
2014-01-01
expenses:office supplies $1
assets:business checking
@ -38,16 +34,14 @@ hledger print -f personal.journal -f business.journal -f alias.journal -f person
expenses:food $1
assets:cash
>>>2
>>>=0
>=
# 2014/01/02
# equity:draw:personal:food $1
# assets:personal:cash $-1
# ** 3. files can be of different formats
hledger print -f personal.journal -f ../journal/a.timeclock -f ../journal/b.timedot
>>>
$ hledger print -f personal.journal -f ../journal/a.timeclock -f ../journal/b.timedot
2014-01-02
expenses:food $1
assets:cash
@ -58,13 +52,9 @@ hledger print -f personal.journal -f ../journal/a.timeclock -f ../journal/b.time
2016-01-01 *
(b.bb) 1.00
>>>2
>>>=0
>=
# ** 4. same-date transactions in different files are shown in the right order
hledger -f a.j -f b.j reg
>>>
$ hledger -f a.j -f b.j reg
2018-01-01 a1 (a) 1 1
2018-01-01 b1 (b) 1 2
>>>2
>>>=0