8000 [3.13] gh-123811: Test that round(Decimal) can return signed zero (GH… · python/cpython@9a1e9dd · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a1e9dd

Browse files
[3.13] gh-123811: Test that round(Decimal) can return signed zero (GH-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>
1 parent 181c2b8 commit 9a1e9dd

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)
0