mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Improve test coverage.
This commit is contained in:
parent
f751fa6195
commit
5ea7e31076
5 changed files with 49 additions and 34 deletions
|
@ -229,6 +229,9 @@ class BuiltinTest(unittest.TestCase):
|
|||
self.assertEqual(divmod(12L, -7), (-2L, -2))
|
||||
self.assertEqual(divmod(-12L, -7), (1L, -5))
|
||||
|
||||
self.assertEqual(divmod(-sys.maxint-1, -1),
|
||||
(sys.maxint+1, 0))
|
||||
|
||||
self.assert_(not fcmp(divmod(3.25, 1.0), (3.0, 0.25)))
|
||||
self.assert_(not fcmp(divmod(-3.25, 1.0), (-4.0, 0.75)))
|
||||
self.assert_(not fcmp(divmod(3.25, -1.0), (-4.0, -0.75)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue