mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
dev: tests for multi-file account display order (#1909)
This commit is contained in:
parent
035f2ac4bb
commit
4be4525b90
3
hledger/test/journal/account-display-order/1/a.j
Normal file
3
hledger/test/journal/account-display-order/1/a.j
Normal file
@ -0,0 +1,3 @@
|
||||
account A1
|
||||
account A2
|
||||
include aa.j
|
2
hledger/test/journal/account-display-order/1/aa.j
Normal file
2
hledger/test/journal/account-display-order/1/aa.j
Normal file
@ -0,0 +1,2 @@
|
||||
account AA3
|
||||
account AA4
|
2
hledger/test/journal/account-display-order/1/b.j
Normal file
2
hledger/test/journal/account-display-order/1/b.j
Normal file
@ -0,0 +1,2 @@
|
||||
account B5
|
||||
account B6
|
@ -0,0 +1,15 @@
|
||||
# 1. Accounts declared in this parent file and included child file are displayed in correct order.
|
||||
$ hledger -f 1/a.j accounts
|
||||
A1
|
||||
A2
|
||||
AA3
|
||||
AA4
|
||||
|
||||
# 2. And with another sibling file, display order is still correct.
|
||||
$ hledger -f 1/a.j -f 1/b.j accounts
|
||||
A1
|
||||
A2
|
||||
AA3
|
||||
AA4
|
||||
B5
|
||||
B6
|
Loading…
Reference in New Issue
Block a user