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_hermite.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_hermite.py')
-rw-r--r-- | numpy/polynomial/tests/test_hermite.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/polynomial/tests/test_hermite.py b/numpy/polynomial/tests/test_hermite.py index 2e39d854d..08b0a883a 100644 --- a/numpy/polynomial/tests/test_hermite.py +++ b/numpy/polynomial/tests/test_hermite.py @@ -202,6 +202,9 @@ class TestIntegral(object): assert_raises(ValueError, herm.hermint, [0], .5) assert_raises(ValueError, herm.hermint, [0], -1) assert_raises(ValueError, herm.hermint, [0], 1, [0, 0]) + assert_raises(ValueError, herm.hermint, [0], lbnd=[0]) + assert_raises(ValueError, herm.hermint, [0], scl=[0]) + assert_raises(ValueError, herm.hermint, [0], axis=.5) # test integration of zero polynomial for i in range(2, 5): |