summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-05-21 05:36:10 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-05-21 05:36:10 +0000
commit467f4fb2fe54ad979dc6c4aa3a11e7482b97fd0f (patch)
tree2aeff6635fd0aa4f7616b153b554c7d9a8bb3b9f
parent1eac0c58c8168197f8f2a53ccadd4c449f32ff31 (diff)
downloadnumpy-467f4fb2fe54ad979dc6c4aa3a11e7482b97fd0f.tar.gz
ENH: Add test for the degree method added to the Chebyshev
-rw-r--r--numpy/polynomial/tests/test_chebyshev.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/polynomial/tests/test_chebyshev.py b/numpy/polynomial/tests/test_chebyshev.py
index b2c4ee105..13776aa87 100644
--- a/numpy/polynomial/tests/test_chebyshev.py
+++ b/numpy/polynomial/tests/test_chebyshev.py
@@ -399,6 +399,9 @@ class TestChebyshevClass(TestCase) :
xx = 2*x - 1
assert_almost_equal(self.p2(x), self.p1(xx))
+ def test_degree(self) :
+ assert_equal(self.p1.degree(), 2)
+
def test_convert(self) :
x = np.linspace(-1,1)
p = self.p1.convert(domain=[0,1])