dev: tests for multi-file account display order (#1909)

This commit is contained in:
Simon Michael 2022-08-14 08:39:08 +01:00
parent 035f2ac4bb
commit 4be4525b90
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,3 @@
account A1
account A2
include aa.j

View File

@ -0,0 +1,2 @@
account AA3
account AA4

View File

@ -0,0 +1,2 @@
account B5
account B6

View File

@ -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