stats: test display order of included files
This commit is contained in:
parent
34318906d8
commit
24546bb910
@ -1,4 +0,0 @@
|
||||
bin/hledger -f- stats
|
||||
<<<
|
||||
>>> /Accounts.* 0 \(depth 0\)/
|
||||
>>>=0
|
||||
14
tests/stats.test
Normal file
14
tests/stats.test
Normal file
@ -0,0 +1,14 @@
|
||||
# 1. empty file
|
||||
bin/hledger -f- stats
|
||||
<<<
|
||||
>>> /Accounts.* 0 \(depth 0\)/
|
||||
>>>=0
|
||||
|
||||
# 2. included files should be listed in parse order
|
||||
touch a b; bin/hledger -f- stats; rm -f a b
|
||||
<<<
|
||||
include a
|
||||
include b
|
||||
>>> /Included journal files *: *\.\/a/
|
||||
>>>2
|
||||
>>>=0
|
||||
Loading…
Reference in New Issue
Block a user