summaryrefslogtreecommitdiff
path: root/numpy/random/tests/test_random.py
diff options
context:
space:
mode:
authorKevin Sheppard <kevin.k.sheppard@gmail.com>2019-02-18 12:29:02 +0000
committerKevin Sheppard <kevin.k.sheppard@gmail.com>2019-02-18 12:51:25 +0000
commit61b3fa03b3bd4d05892646e13de35f00f577d786 (patch)
tree2f7bc6c436408586f2ef69f0488df688b97017b7 /numpy/random/tests/test_random.py
parent5015d8785fc9bee27503de6db2ec44a12e3a2dbe (diff)
downloadnumpy-61b3fa03b3bd4d05892646e13de35f00f577d786.tar.gz
DOC: Fix Wald docstring
Fix Wald Docstring to reflect actual restriction on parameters Add a test to ensure these are enforced for scalar inputs
Diffstat (limited to 'numpy/random/tests/test_random.py')
-rw-r--r--numpy/random/tests/test_random.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/random/tests/test_random.py b/numpy/random/tests/test_random.py
index d4721bc62..656e38dc8 100644
--- a/numpy/random/tests/test_random.py
+++ b/numpy/random/tests/test_random.py
@@ -1354,6 +1354,8 @@ class TestBroadcast(object):
assert_array_almost_equal(actual, desired, decimal=14)
assert_raises(ValueError, wald, bad_mean, scale * 3)
assert_raises(ValueError, wald, mean, bad_scale * 3)
+ assert_raises(ValueError, wald, 0.0, 1)
+ assert_raises(ValueError, wald, 0.5, 0.0)
def test_triangular(self):
left = [1]