[Numpy-svn] r8423 - trunk/numpy/polynomial/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Fri May 21 01:36:10 EDT 2010


Author: charris
Date: 2010-05-21 00:36:10 -0500 (Fri, 21 May 2010)
New Revision: 8423

Modified:
   trunk/numpy/polynomial/tests/test_chebyshev.py
Log:
ENH: Add test for the degree method added to the Chebyshev

Modified: trunk/numpy/polynomial/tests/test_chebyshev.py
===================================================================
--- trunk/numpy/polynomial/tests/test_chebyshev.py	2010-05-21 05:36:08 UTC (rev 8422)
+++ trunk/numpy/polynomial/tests/test_chebyshev.py	2010-05-21 05:36:10 UTC (rev 8423)
@@ -399,6 +399,9 @@
         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])




More information about the Numpy-svn mailing list