mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
[3.12] gh-111342: fix typo in math.sumprod (GH-111416) (gh-111419)
This commit is contained in:
parent
2398036eea
commit
c3f75b757f
3 changed files with 3 additions and 1 deletions
|
@ -1292,6 +1292,7 @@ class MathTests(unittest.TestCase):
|
|||
sumprod = math.sumprod
|
||||
self.assertEqual(sumprod([0.1] * 10, [1]*10), 1.0)
|
||||
self.assertEqual(sumprod([0.1] * 20, [True, False] * 10), 1.0)
|
||||
self.assertEqual(sumprod([True, False] * 10, [0.1] * 20), 1.0)
|
||||
self.assertEqual(sumprod([1.0, 10E100, 1.0, -10E100], [1.0]*4), 2.0)
|
||||
|
||||
@support.requires_resource('cpu')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue