mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Add testcases from bug report #9980.
This commit is contained in:
parent
71e91a358b
commit
0c0714f954
1 changed files with 5 additions and 0 deletions
|
@ -279,6 +279,11 @@
|
|||
%.2g 0.000123 -> 0.00012
|
||||
%.2g 0.0000123 -> 1.2e-05
|
||||
|
||||
-- bad cases from http://bugs.python.org/issue9980
|
||||
%.12g 38210.0 -> 38210
|
||||
%.12g 37210.0 -> 37210
|
||||
%.12g 36210.0 -> 36210
|
||||
|
||||
-- alternate g formatting: always include decimal point and
|
||||
-- exactly <precision> significant digits.
|
||||
%#.0g 0 -> 0.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue