gh-123811: Test that round(Decimal) can return signed zero (GH-124007)

This commit is contained in:
Sergey B Kirpichev 2024-09-13 15:49:13 +03:00 committed by GitHub
parent acb3f875fb
commit b46c65ed2b
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'),