Skip to content

Commit

Permalink
pythongh-123811: Test that round(Decimal) can return signed zero (pyt…
Browse files Browse the repository at this point in the history
…honGH-124007)

(cherry picked from commit b46c65e)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
  • Loading branch information
skirpichev authored and miss-islington committed Sep 13, 2024
1 parent 112b170 commit 8f2c8eb
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 8f2c8eb

Please sign in to comment.