summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-04-05 04:38:49 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-04-05 04:38:49 +0000
commit375542b2dd182dce0af0c32579645e7b30659bb0 (patch)
treef959ebe6eabc5dd457c149c6d7865566cc8a1508 /numpy
parent6cc6cc62c53190e6deb980a4327f846b26dd156e (diff)
downloadnumpy-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.py4
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()