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
  • Loading branch information
skirpichev authored Sep 13, 2024
1 parent acb3f87 commit b46c65e
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 b46c65e

Please sign in to comment.