Added a test for negative date differences
svn: r11522
This commit is contained in:
parent
a11d819296
commit
42b00f04f4
@ -358,6 +358,7 @@ def suite2():
|
|||||||
("Date(2000,1,1) - Date(1999,2,1)", "Span(0, 11, 0)"),
|
("Date(2000,1,1) - Date(1999,2,1)", "Span(0, 11, 0)"),
|
||||||
("Date(2000,1,1) - Date(1999,12,1)", "Span(0, 1, 0)"),
|
("Date(2000,1,1) - Date(1999,12,1)", "Span(0, 1, 0)"),
|
||||||
("Date(2007, 12, 23) - Date(1963, 12, 4)", "Span(44, 0, 19)"),
|
("Date(2007, 12, 23) - Date(1963, 12, 4)", "Span(44, 0, 19)"),
|
||||||
|
("Date(1963, 12, 4) - Date(2007, 12, 23)", "Span(-44, 0, -19)"),
|
||||||
]
|
]
|
||||||
suite = unittest.TestSuite()
|
suite = unittest.TestSuite()
|
||||||
count = 1
|
count = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user