-
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: tests for multi-file account display order (#1909)
- Loading branch information
1 parent
c676d24
commit b280a5c
Showing
4 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
account A1 | ||
account A2 | ||
include aa.j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
account AA3 | ||
account AA4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
account B5 | ||
account B6 |
15 changes: 15 additions & 0 deletions
15
hledger/test/journal/account-display-order/account-display-order.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |