[pypy-svn] r5621 - pypy/trunk/src/pypy/objspace/std/test
mwh at codespeak.net
mwh at codespeak.net
Thu Jul 22 18:31:29 CEST 2004
Author: mwh
Date: Thu Jul 22 18:31:29 2004
New Revision: 5621
Modified:
pypy/trunk/src/pypy/objspace/std/test/test_stringformat.py
Log:
use floats with exact decimal expansions in the tests.
i'll get to 1ulp stuff eventually, just not yet (in fact, the tests
still fail... hopefully i'll get to that sooner :-)
Modified: pypy/trunk/src/pypy/objspace/std/test/test_stringformat.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/test/test_stringformat.py (original)
+++ pypy/trunk/src/pypy/objspace/std/test/test_stringformat.py Thu Jul 22 18:31:29 2004
@@ -108,10 +108,10 @@
self.assertEquals("%02d"%1, "01")
self.assertEquals("%05d"%1, "00001")
self.assertEquals("%-05d"%1, "1 ")
- self.assertEquals("%04f"%2.3, "2.300000")
- self.assertEquals("%04g"%2.3, "02.3")
- self.assertEquals("%-04g"%2.3,"2.3 ")
- self.assertEquals("%04s"%2.3, " 2.3")
+ self.assertEquals("%04f"%2.25, "2.250000")
+ self.assertEquals("%05g"%2.25, "02.25")
+ self.assertEquals("%-05g"%2.25,"2.25 ")
+ self.assertEquals("%05s"%2.25, " 2.25")
def test_star_width(self):
More information about the Pypy-commit
mailing list