diff options
Diffstat (limited to 'numpy/polynomial/tests')
-rw-r--r-- | numpy/polynomial/tests/test_chebyshev.py | 5 | ||||
-rw-r--r-- | numpy/polynomial/tests/test_polynomial.py | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/numpy/polynomial/tests/test_chebyshev.py b/numpy/polynomial/tests/test_chebyshev.py index 5662d0362..17970ccc1 100644 --- a/numpy/polynomial/tests/test_chebyshev.py +++ b/numpy/polynomial/tests/test_chebyshev.py @@ -477,11 +477,12 @@ class TestChebyshevClass(TestCase) : assert_almost_equal(p.domain, [0,3]) # test that fit works in given domains - p = ch.Chebyshev.fit(x, y, 3, 'default') - assert_almost_equal(p(x), y) p = ch.Chebyshev.fit(x, y, 3, None) assert_almost_equal(p(x), y) assert_almost_equal(p.domain, [0,3]) + p = ch.Chebyshev.fit(x, y, 3, []) + assert_almost_equal(p(x), y) + assert_almost_equal(p.domain, [-1, 1]) def test_identity(self) : x = np.linspace(0,3) diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py index 15525fcd8..c8edcd308 100644 --- a/numpy/polynomial/tests/test_polynomial.py +++ b/numpy/polynomial/tests/test_polynomial.py @@ -448,11 +448,12 @@ class TestPolynomialClass(TestCase) : assert_almost_equal(p.domain, [0,3]) # test that fit works in given domains - p = poly.Polynomial.fit(x, y, 3, 'default') - assert_almost_equal(p(x), y) p = poly.Polynomial.fit(x, y, 3, None) assert_almost_equal(p(x), y) assert_almost_equal(p.domain, [0,3]) + p = poly.Polynomial.fit(x, y, 3, []) + assert_almost_equal(p(x), y) + assert_almost_equal(p.domain, [-1, 1]) def test_identity(self) : x = np.linspace(0,3) |