Using "hledgerdev" was a hack to help ensure that tests used a fresh developer build by default. Now they specify "hledger" again, which fits better with stack. It's up to the tester to make sure the desired executable is first in PATH or specified with -w. (Note a couple of tests currently don't obey -w and will always run "hledger", see addons.test).
28 lines
409 B
Plaintext
28 lines
409 B
Plaintext
# print shows both dates. The second's year defaults to the first's.
|
|
hledger -f - print --date2
|
|
<<<
|
|
2009/1/1=1/2 x
|
|
a 1
|
|
b
|
|
>>>
|
|
2009/01/01=2009/01/02 x
|
|
a 1
|
|
b -1
|
|
|
|
>>>2
|
|
>>>= 0
|
|
|
|
# Secondary date of 29 Feb on leap year should be valid
|
|
hledger -f - print --date2
|
|
<<<
|
|
2001/2/27=2000/2/29 x
|
|
a 1
|
|
b
|
|
>>>
|
|
2001/02/27=2000/02/29 x
|
|
a 1
|
|
b -1
|
|
|
|
>>>2
|
|
>>>= 0
|