summaryrefslogtreecommitdiffstats
path: root/Lib/test/formatfloat_testcases.txt
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-09-29 18:41:54 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-09-29 18:41:54 (GMT)
commit0c0714f954bd78fdeae30ae284abc381bd850393 (patch)
treed21e70d7abf008ec2840fdb263527b4ba5d71d08 /Lib/test/formatfloat_testcases.txt
parent71e91a358ba0b99319fb6553016094925937e031 (diff)
downloadcpython-0c0714f954bd78fdeae30ae284abc381bd850393.zip
cpython-0c0714f954bd78fdeae30ae284abc381bd850393.tar.gz
cpython-0c0714f954bd78fdeae30ae284abc381bd850393.tar.bz2
Add testcases from bug report #9980.
Diffstat (limited to 'Lib/test/formatfloat_testcases.txt')
-rw-r--r--Lib/test/formatfloat_testcases.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/formatfloat_testcases.txt b/Lib/test/formatfloat_testcases.txt
index 9f045b7..25c07ba 100644
--- a/Lib/test/formatfloat_testcases.txt
+++ b/Lib/test/formatfloat_testcases.txt
@@ -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.