def test_greater_than(): d1 = BaseDate(2019, 10, 10) d3 = BaseDate(2020, 3, 10) assert d3 > d1
def leap_year_feb29(): # 閏年の2月29日 return BaseDate(2012, 2, 29)
def test_greater_or_equal(): d1 = BaseDate(2019, 10, 10) d2 = BaseDate(2019, 10, 10) d3 = BaseDate(2020, 10, 10) assert d2 >= d1 assert d3 >= d1