7197: failing test demonstrating the bug
This commit is contained in:
parent
dc278569c1
commit
626353a0b3
@ -63,18 +63,21 @@ class DateHandlerTest(unittest.TestCase):
|
|||||||
def test_simple(self):
|
def test_simple(self):
|
||||||
|
|
||||||
dates = []
|
dates = []
|
||||||
calendar = Date.CAL_GREGORIAN
|
for calendar in (Date.CAL_GREGORIAN, Date.CAL_JULIAN):
|
||||||
for quality in (Date.QUAL_NONE, Date.QUAL_ESTIMATED,
|
for newyear in (Date.NEWYEAR_JAN1, Date.NEWYEAR_MAR25, (5,5)):
|
||||||
Date.QUAL_CALCULATED):
|
for quality in (Date.QUAL_NONE, Date.QUAL_ESTIMATED,
|
||||||
for modifier in (Date.MOD_NONE, Date.MOD_BEFORE,
|
Date.QUAL_CALCULATED):
|
||||||
Date.MOD_AFTER, Date.MOD_ABOUT):
|
for modifier in (Date.MOD_NONE, Date.MOD_BEFORE,
|
||||||
for slash1 in (False,True):
|
Date.MOD_AFTER, Date.MOD_ABOUT):
|
||||||
for month in range(1, 13):
|
for slash1 in (False,True):
|
||||||
for day in (5, 27):
|
for month in range(1, 13):
|
||||||
d = Date()
|
for day in (5, 27):
|
||||||
d.set(quality, modifier, calendar,
|
d = Date()
|
||||||
(day, month, 1789, slash1), "Text comment")
|
d.set(quality, modifier, calendar,
|
||||||
dates.append(d)
|
(day, month, 1789, slash1),
|
||||||
|
"Text comment",
|
||||||
|
newyear)
|
||||||
|
dates.append(d)
|
||||||
|
|
||||||
for test_date in dates:
|
for test_date in dates:
|
||||||
self.base_test(test_date)
|
self.base_test(test_date)
|
||||||
|
Loading…
Reference in New Issue
Block a user