summaryrefslogtreecommitdiff
path: root/numpy/polynomial/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-02-27 08:01:35 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-02-27 08:01:35 +0000
commit4e59ff6240c9d6dc34e4b8b66d83f04a28ef16a2 (patch)
treede61beef144344b1f566fe630a36e408e045706a /numpy/polynomial/tests
parent7004a5a3652d5131ef9144ead7bc7cc549f0fae2 (diff)
downloadnumpy-4e59ff6240c9d6dc34e4b8b66d83f04a28ef16a2.tar.gz
BUG: Fix bug in lbnd implementation of the integ method of the Chebyshev and
Polynomial classes.
Diffstat (limited to 'numpy/polynomial/tests')
-rw-r--r--numpy/polynomial/tests/test_chebyshev.py2
-rw-r--r--numpy/polynomial/tests/test_polynomial.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/numpy/polynomial/tests/test_chebyshev.py b/numpy/polynomial/tests/test_chebyshev.py
index 4579902ce..10e3fdafa 100644
--- a/numpy/polynomial/tests/test_chebyshev.py
+++ b/numpy/polynomial/tests/test_chebyshev.py
@@ -419,6 +419,8 @@ class TestChebyshevClass(TestCase) :
def test_integ(self) :
p = self.p2.integ()
assert_almost_equal(p.coef, ch.chebint([1,2,3], 1, 0, scl=.5))
+ p = self.p2.integ(lbnd=0)
+ assert_almost_equal(p(0), 0)
p = self.p2.integ(1, 1)
assert_almost_equal(p.coef, ch.chebint([1,2,3], 1, 1, scl=.5))
p = self.p2.integ(2, [1, 2])
diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py
index 8386aed10..936375a80 100644
--- a/numpy/polynomial/tests/test_polynomial.py
+++ b/numpy/polynomial/tests/test_polynomial.py
@@ -393,6 +393,8 @@ class TestPolynomialClass(TestCase) :
def test_integ(self) :
p = self.p2.integ()
assert_almost_equal(p.coef, poly.polyint([1,2,3], 1, 0, scl=.5))
+ p = self.p2.integ(lbnd=0)
+ assert_almost_equal(p(0), 0)
p = self.p2.integ(1, 1)
assert_almost_equal(p.coef, poly.polyint([1,2,3], 1, 1, scl=.5))
p = self.p2.integ(2, [1, 2])