summaryrefslogtreecommitdiff
path: root/numpy/random/tests
diff options
context:
space:
mode:
authorBharat123Rox <bharatr@symphonyai.com>2019-03-05 14:58:51 +0530
committerBharat123Rox <bharatr@symphonyai.com>2019-03-05 14:58:51 +0530
commitc17127c3056b9086e76c3c6e5bb2655f2264b681 (patch)
tree16aae0e39e69af638bc9a277a39428fd0d08497e /numpy/random/tests
parent67fb19f25e1114e76bd75219bc592feaae95f6a9 (diff)
downloadnumpy-c17127c3056b9086e76c3c6e5bb2655f2264b681.tar.gz
Added more tests as suggested by @eric-wieser
Diffstat (limited to 'numpy/random/tests')
-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 389fd3b7e..bf8c2be93 100644
--- a/numpy/random/tests/test_random.py
+++ b/numpy/random/tests/test_random.py
@@ -401,6 +401,8 @@ class TestRandomDist(object):
assert_raises(ValueError, sample, [1, 2], 3, p=[0.4, 0.4])
assert_raises(ValueError, sample, [1, 2, 3], 4, replace=False)
assert_raises(ValueError, sample, [1, 2, 3], -2, replace=False)
+ assert_raises(ValueError, sample, [1, 2, 3], (-1,), replace=False)
+ assert_raises(ValueError, sample, [1, 2, 3], (-1, 1), replace=False)
assert_raises(ValueError, sample, [1, 2, 3], 2,
replace=False, p=[1, 0, 0])