diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-04-05 04:38:49 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-04-05 04:38:49 +0000 |
commit | 375542b2dd182dce0af0c32579645e7b30659bb0 (patch) | |
tree | f959ebe6eabc5dd457c149c6d7865566cc8a1508 /numpy | |
parent | 6cc6cc62c53190e6deb980a4327f846b26dd156e (diff) | |
download | numpy-375542b2dd182dce0af0c32579645e7b30659bb0.tar.gz |
ENH: Add test for log1p on intel 32 bits for certain small values of p.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_regression.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index c309e9e1d..cd0d05a26 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1283,5 +1283,9 @@ class TestRegression(TestCase): # 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() |