slashmili / python-jalali

Jalali calendar binding for Python based on Python's datetime module
http://pypi.python.org/pypi/jdatetime/
Other
332 stars 46 forks source link

Add test data for date conversion #153

Open roozbehp opened 3 months ago

roozbehp commented 3 months ago

I just typed in the leap year data from the Iranian calendar authority and put it at: https://github.com/roozbehp/persiancalendar/blob/main/kabise.txt

It would be great if automatic tests could be added based on that data to this project. (I expect all of them to pass.)

slashmili commented 3 months ago

Great idea!

only that the test will be for jalali-core as the algorithm resides there

roozbehp commented 3 months ago

You also have part of that algorithm here, in your isleap() method. I recommend either having it here or in both projects.

slashmili commented 3 months ago

fair point!