hledger/tests/print-effective.test
Simon Michael 35f3a4fa00 print, web: always show both dates, ignoring --effective (#42)
Ledger shows only the effective date with --effective, but not vice versa.
print is supposed to be information-preserving so this seems better.
This also fixes the web entries view.
2011-09-23 14:50:20 +00:00

28 lines
425 B
Plaintext

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