diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-06-07 03:43:19 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-06-07 03:43:19 +0000 |
commit | 0db76715c5f019222db48cc28a6a49d086a8a939 (patch) | |
tree | feab8bcb1f79bbc31a3fd43c38466cf6874bffd5 /numpy/polynomial/tests/test_chebyshev.py | |
parent | 66e3231baaf2181abeafc4d37b8ad5272728ff64 (diff) | |
download | numpy-0db76715c5f019222db48cc28a6a49d086a8a939.tar.gz |
CHG: Rename reduce method in polytemplate to cutdeg. Reduce is just too
much like a ufunc and a bit vague.
Diffstat (limited to 'numpy/polynomial/tests/test_chebyshev.py')
-rw-r--r-- | numpy/polynomial/tests/test_chebyshev.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/polynomial/tests/test_chebyshev.py b/numpy/polynomial/tests/test_chebyshev.py index 17970ccc1..a893921ce 100644 --- a/numpy/polynomial/tests/test_chebyshev.py +++ b/numpy/polynomial/tests/test_chebyshev.py @@ -402,13 +402,13 @@ class TestChebyshevClass(TestCase) : def test_degree(self) : assert_equal(self.p1.degree(), 2) - def test_reduce(self) : - assert_raises(ValueError, self.p1.reduce, .5) - assert_raises(ValueError, self.p1.reduce, -1) - assert_equal(len(self.p1.reduce(3)), 3) - assert_equal(len(self.p1.reduce(2)), 3) - assert_equal(len(self.p1.reduce(1)), 2) - assert_equal(len(self.p1.reduce(0)), 1) + 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) + assert_equal(len(self.p1.cutdeg(2)), 3) + assert_equal(len(self.p1.cutdeg(1)), 2) + assert_equal(len(self.p1.cutdeg(0)), 1) def test_convert(self) : x = np.linspace(-1,1) |