diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2006-10-06 18:56:24 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2006-10-06 18:56:24 +0000 |
commit | 1c88a77c1b14297da7c4165bdf00d1f30c705f35 (patch) | |
tree | 6c24a7b412c9d72030a39f3d060113af0ed39ce3 /numpy/lib/tests/test_polynomial.py | |
parent | 2c406001966f201617c463633dc1ab67d396d0c0 (diff) | |
download | numpy-1c88a77c1b14297da7c4165bdf00d1f30c705f35.tar.gz |
Add tests for tickets #312, #322, for polynomial roots and for setting
elements in object arrays.
Diffstat (limited to 'numpy/lib/tests/test_polynomial.py')
-rw-r--r-- | numpy/lib/tests/test_polynomial.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_polynomial.py b/numpy/lib/tests/test_polynomial.py index c7609c3d5..e2afc72ae 100644 --- a/numpy/lib/tests/test_polynomial.py +++ b/numpy/lib/tests/test_polynomial.py @@ -74,9 +74,13 @@ poly1d([ 2.]) """ from numpy.testing import * +import numpy as N class test_docs(NumpyTestCase): def check_doctests(self): return self.rundocs() + + def check_roots(self): + assert_array_equal(N.roots([1,0,0]), [0,0]) if __name__ == "__main__": NumpyTest().run() |