[Scipy-svn] r5316 - trunk/scipy/special/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Fri Jan 2 02:52:50 EST 2009
Author: cdavid
Date: 2009-01-02 01:52:43 -0600 (Fri, 02 Jan 2009)
New Revision: 5316
Modified:
trunk/scipy/special/tests/test_basic.py
Log:
Add regression test for #834.
Modified: trunk/scipy/special/tests/test_basic.py
===================================================================
--- trunk/scipy/special/tests/test_basic.py 2009-01-01 01:12:34 UTC (rev 5315)
+++ trunk/scipy/special/tests/test_basic.py 2009-01-02 07:52:43 UTC (rev 5316)
@@ -128,6 +128,11 @@
cephes.expi(1)
def test_expn(self):
cephes.expn(1,1)
+ def test_exp1_reg(self):
+ # Regression for #834
+ a = cephes.exp1(-complex(19.9999990))
+ b = cephes.exp1(-complex(19.9999991))
+ assert_array_almost_equal(a.imag, b.imag)
def test_exp10(self):
assert_approx_equal(cephes.exp10(2),100.0)
More information about the Scipy-svn
mailing list