diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-10-26 13:06:28 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-10-26 13:26:46 -0600 |
commit | 050cd172585c25e76c0d7f06999ddab70e31ee1a (patch) | |
tree | eaa73e23f3992a7c2955614061bb809624f0dcce /numpy/polynomial/tests/test_chebyshev.py | |
parent | 8f3ee77dd2848640b5a5e7134729bc488f5c315f (diff) | |
download | numpy-050cd172585c25e76c0d7f06999ddab70e31ee1a.tar.gz |
TST: Add tests for `lbnd` and `scl` in polynomial integration.
The `lbnd` and `scl` parameters of the various polynomial integration
functions are documented to be scalars. Add tests that those parameters
are checked and ValueError raised when it is not so.
Diffstat (limited to 'numpy/polynomial/tests/test_chebyshev.py')
-rw-r--r-- | numpy/polynomial/tests/test_chebyshev.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/polynomial/tests/test_chebyshev.py b/numpy/polynomial/tests/test_chebyshev.py index 1a34f42b0..f003081cb 100644 --- a/numpy/polynomial/tests/test_chebyshev.py +++ b/numpy/polynomial/tests/test_chebyshev.py @@ -214,6 +214,9 @@ class TestIntegral(object): assert_raises(ValueError, cheb.chebint, [0], .5) assert_raises(ValueError, cheb.chebint, [0], -1) assert_raises(ValueError, cheb.chebint, [0], 1, [0, 0]) + assert_raises(ValueError, cheb.chebint, [0], lbnd=[0]) + assert_raises(ValueError, cheb.chebint, [0], scl=[0]) + assert_raises(ValueError, cheb.chebint, [0], axis=.5) # test integration of zero polynomial for i in range(2, 5): |