diff options
author | Sergey B Kirpichev <skirpichev@gmail.com> | 2024-09-13 12:49:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 12:49:13 (GMT) |
commit | b46c65ed2b78214cb8914779ac4e8d343ac4775e (patch) | |
tree | 2dec40ec67c5eb61d0996c48378136127f8407d8 | |
parent | acb3f875fba0552d55989f1f2686c334fecaecca (diff) | |
download | cpython-b46c65ed2b78214cb8914779ac4e8d343ac4775e.zip cpython-b46c65ed2b78214cb8914779ac4e8d343ac4775e.tar.gz cpython-b46c65ed2b78214cb8914779ac4e8d343ac4775e.tar.bz2 |
gh-123811: Test that round(Decimal) can return signed zero (GH-124007)
-rw-r--r-- | Lib/test/test_decimal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 4675510..12479e3 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'), |