Mercurial > p > roundup > code
diff test/test_dates.py @ 1505:c101d2ff5a20
fix to [SF#691071], really this time
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 10 Mar 2003 00:22:52 +0000 |
| parents | 66cc5c2819dd |
| children | 26f29449c494 |
line wrap: on
line diff
--- a/test/test_dates.py Sun Mar 09 23:03:06 2003 +0000 +++ b/test/test_dates.py Mon Mar 10 00:22:52 2003 +0000 @@ -15,11 +15,11 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_dates.py,v 1.19 2003-03-06 06:12:30 richard Exp $ +# $Id: test_dates.py,v 1.20 2003-03-10 00:22:21 richard Exp $ import unittest, time -from roundup.date import Date, Interval, fixTimeOverflow +from roundup.date import Date, Interval, Range, fixTimeOverflow class DateTestCase(unittest.TestCase): def testDateInterval(self): @@ -223,6 +223,11 @@ l = [i1, i2]; l.sort() ae(l, [i1, i2]) + i1 = Interval("1:20") + i2 = Interval("2d") + i3 = Interval("3:30") + l = [i1, i2, i3]; l.sort() + ae(l, [i1, i3, i2]) def suite(): return unittest.makeSuite(DateTestCase, 'test')
