[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 b46c65ed2b)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
This commit is contained in:
Miss Islington (bot) 2024-09-24 02:31:28 +02:00 committed by GitHub
parent 181c2b8669
commit 9a1e9dd111
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2071,7 +2071,9 @@ class UsabilityTest:
#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'),