hledger/tests/print-effective.test

28 lines
423 B
Plaintext
Raw Normal View History

# print shows both dates. The second's year defaults to the first's.
hledgerdev -f - print --effective
<<<
2009/1/1=1/2 x
a 1
b
>>>
2009/01/01=2009/01/02 x
a 1
b -1
>>>2
2011-04-20 01:40:59 +04:00
>>>= 0
2011-04-20 01:40:59 +04:00
# Effective date of 29 Feb on leap year should be valid
hledgerdev -f - print --effective
<<<
2011-04-20 01:40:59 +04:00
2001/2/27=2000/2/29 x
a 1
b
>>>
2001/02/27=2000/02/29 x
a 1
b -1
>>>2
2011-04-20 01:40:59 +04:00
>>>= 0