summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_math.py
diff options
context:
space:
mode:
authorSergey B Kirpichev <skirpichev@gmail.com>2023-10-28 04:52:04 (GMT)
committerGitHub <noreply@github.com>2023-10-28 04:52:04 (GMT)
commit9dc4fb820439db26b223edce30e5313a2e3182ff (patch)
treec8a35dec25d3e1ed95956d94691fa5342c0c8dee /Lib/test/test_math.py
parentc3bb10c9303503e7b55a7bdf9acfa6b3bcb699c6 (diff)
downloadcpython-9dc4fb820439db26b223edce30e5313a2e3182ff.zip
cpython-9dc4fb820439db26b223edce30e5313a2e3182ff.tar.gz
cpython-9dc4fb820439db26b223edce30e5313a2e3182ff.tar.bz2
gh-111342: fix typo in math.sumprod (GH-111416)
Diffstat (limited to 'Lib/test/test_math.py')
-rw-r--r--Lib/test/test_math.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index d5d2197..bab732c 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -1325,6 +1325,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')