From dd9d99c7fec0f7eedc1ad6ba4e557810f7a8954b Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 5 May 2010 02:50:03 +0000 Subject: ENH: Add test of polyder return type. --- numpy/lib/tests/test_regression.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'numpy') diff --git a/numpy/lib/tests/test_regression.py b/numpy/lib/tests/test_regression.py index 60261bf79..42f3ecea8 100644 --- a/numpy/lib/tests/test_regression.py +++ b/numpy/lib/tests/test_regression.py @@ -181,5 +181,13 @@ class TestRegression(TestCase): assert isinstance(path, (str, unicode)) assert path != '' + def test_polyder_return_type(self): + """Ticket #1249""" + assert_(isinstance(np.polyder(np.poly1d([1]), 0), np.poly1d)) + assert_(isinstance(np.polyder([1], 0), np.ndarray)) + assert_(isinstance(np.polyder(np.poly1d([1]), 1), np.poly1d)) + assert_(isinstance(np.polyder([1], 1), np.ndarray)) + + if __name__ == "__main__": run_module_suite() -- cgit v1.2.1