Skip to content

Commit

Permalink
[3.13] gh-123811: Test that round(Decimal) can return signed zero (GH…
Browse files Browse the repository at this point in the history
…-124007) (#124048)

gh-123811: Test that round(Decimal) can return signed zero (GH-124007)
(cherry picked from commit b46c65e)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
  • Loading branch information
miss-islington and skirpichev committed Sep 24, 2024
1 parent 181c2b8 commit 9a1e9dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,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'),
Expand Down

0 comments on commit 9a1e9dd

Please sign in to comment.