[Numpy-svn] r8323 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Sun Apr 4 23:38:49 CDT 2010


Author: charris
Date: 2010-04-04 23:38:49 -0500 (Sun, 04 Apr 2010)
New Revision: 8323

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
ENH: Add test for log1p on intel 32 bits for certain small values of p.

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2010-04-05 04:03:25 UTC (rev 8322)
+++ trunk/numpy/core/tests/test_regression.py	2010-04-05 04:38:49 UTC (rev 8323)
@@ -1283,5 +1283,9 @@
         # Bug #1436; the following should succeed
         np.asarray('x', '>c')
 
+    def test_log1p_compiler_shenanigans(self):
+        # Check if log1p is behaving on 32 bit intel systems.
+        assert_(np.isfinite(np.log1p(np.exp2(-53))))
+
 if __name__ == "__main__":
     run_module_suite()



More information about the Numpy-svn mailing list