tests: 29th feb should be correctly handled wrt leap/non-leap year

This commit is contained in:
Dmitry Astapov 2011-04-19 20:15:14 +00:00
parent 5ec8ef243c
commit cd2d8faaef

View File

@ -13,3 +13,22 @@ bin/hledger -f- print
b
>>>2 /bad day number: 32/
>>>= 1
# 29th feb on leap year
bin/hledger -f- print
<<<
2010/2/29 x
a 1
b
>>>
2010/02/29 x
a 1
b -1
>>>= 0
# 29th feb on non-leap yeap
bin/hledger -f- print
<<<
2011/2/29 x
a 1
b
>>>2 /bad day number: 29/
>>>= 1