Skip to content

Commit

Permalink
dev: tests for multi-file account display order (#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Aug 14, 2022
1 parent c676d24 commit b280a5c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hledger/test/journal/account-display-order/1/a.j
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
account A1
account A2
include aa.j
2 changes: 2 additions & 0 deletions hledger/test/journal/account-display-order/1/aa.j
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
account AA3
account AA4
2 changes: 2 additions & 0 deletions hledger/test/journal/account-display-order/1/b.j
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
account B5
account B6
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b280a5c

Please sign in to comment.