mirror of
https://github.com/python/cpython.git
synced 2024-11-28 04:15:11 +08:00
Add testcases from bug report #9980.
This commit is contained in:
parent
71e91a358b
commit
0c0714f954
@ -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…
Reference in New Issue
Block a user