From: Sergey B Kirpichev Date: Fri, 13 Sep 2024 12:49:13 +0000 (+0300) Subject: gh-123811: Test that round(Decimal) can return signed zero (GH-124007) X-Git-Tag: v3.14.0a1~491 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b46c65ed2b78214cb8914779ac4e8d343ac4775e;p=thirdparty%2FPython%2Fcpython.git gh-123811: Test that round(Decimal) can return signed zero (GH-124007) --- diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 46755107de01..12479e32d0f5 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -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'),