[Python-checkins] r71165 - python/branches/py3k-short-float-repr/Lib/test/formatfloat_testcases.txt

mark.dickinson python-checkins at python.org
Sat Apr 4 18:16:33 CEST 2009


Author: mark.dickinson
Date: Sat Apr  4 18:16:33 2009
New Revision: 71165

Log:
A couple more testcases


Modified:
   python/branches/py3k-short-float-repr/Lib/test/formatfloat_testcases.txt

Modified: python/branches/py3k-short-float-repr/Lib/test/formatfloat_testcases.txt
==============================================================================
--- python/branches/py3k-short-float-repr/Lib/test/formatfloat_testcases.txt	(original)
+++ python/branches/py3k-short-float-repr/Lib/test/formatfloat_testcases.txt	Sat Apr  4 18:16:33 2009
@@ -22,6 +22,7 @@
 %.0f 123.456 -> 123
 %.0f 1234.56 -> 1235
 %.0f 1e49 -> 9999999999999999464902769475481793196872414789632
+%.0f 1e50 -> 100000000000000007629769841091887003294964970946560
 %.0f 9.9999999999999987e+49 -> 99999999999999986860582406952576489172979654066176
 
 -- precision 1
@@ -348,7 +349,6 @@
 
 -- str formatting.  Result always includes decimal point and at
 -- least one digit after the point, or an exponent.
-
 %s 0 -> 0.0
 %s 1 -> 1.0
 
@@ -369,6 +369,7 @@
 %s 1e10 -> 10000000000.0
 %s 9.999e10 -> 99990000000.0
 %s 99999999999 -> 99999999999.0
+%s 1e11 -> 1e+11
 %s 1e12 -> 1e+12
 
 -- as do values < 1e-4
@@ -381,9 +382,3 @@
 %s 0.999999999999e-4 -> 9.99999999999e-05
 %s 0.999e-4 -> 9.99e-05
 %s 1e-5 -> 1e-05
-
-
--- removed tests:  need to decide what to do with these
-
--- %s 1e11 -> 1e+11
--- %.0f 1e50 -> 1e50


More information about the Python-checkins mailing list