From 0a7870dd85f4dbbf8e6a3544856d8b752e02ac6d Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sun, 13 Mar 2011 19:46:02 -0600 Subject: ENH: Change test_trimdeg to test_cutdeg to match method name. --- numpy/polynomial/tests/test_hermite.py | 3 ++- numpy/polynomial/tests/test_laguerre.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'numpy/polynomial') diff --git a/numpy/polynomial/tests/test_hermite.py b/numpy/polynomial/tests/test_hermite.py index 7e361e804..dea32f24a 100644 --- a/numpy/polynomial/tests/test_hermite.py +++ b/numpy/polynomial/tests/test_hermite.py @@ -21,6 +21,7 @@ H9 = np.array([0, 30240, 0, -80640, 0, 48384, 0, -9216, 0, 512]) Hlist = [H0, H1, H2, H3, H4, H5, H6, H7, H8, H9] + def trim(x) : return herm.hermtrim(x, tol=1e-6) @@ -428,7 +429,7 @@ class TestHermiteClass(TestCase) : def test_degree(self) : assert_equal(self.p1.degree(), 2) - def test_trimdeg(self) : + def test_cutdeg(self) : assert_raises(ValueError, self.p1.cutdeg, .5) assert_raises(ValueError, self.p1.cutdeg, -1) assert_equal(len(self.p1.cutdeg(3)), 3) diff --git a/numpy/polynomial/tests/test_laguerre.py b/numpy/polynomial/tests/test_laguerre.py index 4d1b80e4b..f3a4a930b 100644 --- a/numpy/polynomial/tests/test_laguerre.py +++ b/numpy/polynomial/tests/test_laguerre.py @@ -422,7 +422,7 @@ class TestLaguerreClass(TestCase) : def test_degree(self) : assert_equal(self.p1.degree(), 2) - def test_trimdeg(self) : + def test_cutdeg(self) : assert_raises(ValueError, self.p1.cutdeg, .5) assert_raises(ValueError, self.p1.cutdeg, -1) assert_equal(len(self.p1.cutdeg(3)), 3) -- cgit v1.2.1