Skip to content

Commit b6f4607

Browse files
[3.12] gh-123811: Test that round(Decimal) can return signed zero (GH-124007) (GH-124049)
(cherry picked from commit b46c65e) Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent 53af5b2 commit b6f4607

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
@@ -2060,7 +2060,9 @@ def test_tonum_methods(self):
20602060
#to quantize, which is already extensively tested
20612061
test_triples = [
20622062
('123.456', -4, '0E+4'),
2063+
('-123.456', -4, '-0E+4'),
20632064
('123.456', -3, '0E+3'),
2065+
('-123.456', -3, '-0E+3'),
20642066
('123.456', -2, '1E+2'),
20652067
('123.456', -1, '1.2E+2'),
20662068
('123.456', 0, '123'),

0 commit comments

Comments
 (0)