]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123811: Test that round(Decimal) can return signed zero (GH-124007)
authorSergey B Kirpichev <skirpichev@gmail.com>
Fri, 13 Sep 2024 12:49:13 +0000 (15:49 +0300)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 12:49:13 +0000 (15:49 +0300)
Lib/test/test_decimal.py

index 46755107de0102138ff6d39f824a4a1fdc7d0935..12479e32d0f5dbcea784fa67bc405a0f1bcf849f 100644 (file)
@@ -2071,7 +2071,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'),