summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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])