From 0524d66e56c2680292b2fca212d02ac1f474bcfc Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Fri, 13 Sep 2024 15:49:13 +0300 Subject: [PATCH] gh-123811: Test that round(Decimal) can return signed zero (GH-124007) (cherry picked from commit b46c65ed2b78214cb8914779ac4e8d343ac4775e) Co-authored-by: Sergey B Kirpichev --- Lib/test/test_decimal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 36d4157c45ef87..eab4881e2cba62 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -2060,7 +2060,9 @@ def test_tonum_methods(self): #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'),