]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-123811: Test that round(Decimal) can return signed zero (GH-124007) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Sep 2024 13:09:26 +0000 (15:09 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 13:09:26 +0000 (13:09 +0000)
(cherry picked from commit b46c65ed2b78214cb8914779ac4e8d343ac4775e)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Lib/test/test_decimal.py

index 36d4157c45ef8757e4c4c31d2f01c818f47ce72d..eab4881e2cba62be69135e4182cea0970f5d3a8b 100644 (file)
@@ -2060,7 +2060,9 @@ class UsabilityTest:
         #to quantize, which is already extensively tested
         test_triples = [
             ('123.456', -4, '0E+4'),
+            ('-123.456', -4, '-0E+4'),
             ('123.456', -3, '0E+3'),
+            ('-123.456', -3, '-0E+3'),
             ('123.456', -2, '1E+2'),
             ('123.456', -1, '1.2E+2'),
             ('123.456', 0, '123'),