[pypy-svn] r13782 - pypy/dist/pypy/objspace/std/test

arigo at codespeak.net arigo at codespeak.net
Fri Jun 24 13:29:31 CEST 2005


Author: arigo
Date: Fri Jun 24 13:29:29 2005
New Revision: 13782

Modified:
   pypy/dist/pypy/objspace/std/test/test_strutil.py
Log:
Tests for previous commit.


Modified: pypy/dist/pypy/objspace/std/test/test_strutil.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_strutil.py	(original)
+++ pypy/dist/pypy/objspace/std/test/test_strutil.py	Fri Jun 24 13:29:29 2005
@@ -155,6 +155,10 @@
     assert string_to_float('-1.5') == -1.5
     assert string_to_float('1.5E2') == 150.0
     assert string_to_float('2.5E-1') == 0.25
+    assert string_to_float('1e1111111111111') == float('1e1111111111111')
+    assert string_to_float('1e-1111111111111') == float('1e-1111111111111')
+    assert string_to_float('-1e1111111111111') == float('-1e1111111111111')
+    assert string_to_float('-1e-1111111111111') == float('-1e-1111111111111')
 
     valid_parts = [['', '  ', ' \f\n\r\t\v'],
                    ['', '+', '-'],



More information about the Pypy-commit mailing list