Skip to content

Commit 1c8c163

Browse files
committed
pythongh-123811: test that round(Decimal) can return signed zero
1 parent aa3f11f commit 1c8c163

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_decimal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,9 @@ def test_tonum_methods(self):
20712071
#to quantize, which is already extensively tested
20722072
test_triples = [
20732073
('123.456', -4, '0E+4'),
2074+
('-123.456', -4, '-0E+4'),
20742075
('123.456', -3, '0E+3'),
2076+
('-123.456', -3, '-0E+3'),
20752077
('123.456', -2, '1E+2'),
20762078
('123.456', -1, '1.2E+2'),
20772079
('123.456', 0, '123'),

0 commit comments

Comments
 (0)