diff options
Diffstat (limited to 'numpy/random/tests')
-rw-r--r-- | numpy/random/tests/test_random.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/random/tests/test_random.py b/numpy/random/tests/test_random.py index 9b9e5d828..633f6840f 100644 --- a/numpy/random/tests/test_random.py +++ b/numpy/random/tests/test_random.py @@ -9,5 +9,11 @@ class TestMultinomial(NumpyTestCase): def test_zero_probability(self): random.multinomial(100, [0.2, 0.8, 0.0, 0.0, 0.0]) + def test_int_negative_interval(self): + assert -5 <= random.randint(-5,-1) < -1 + x = random.randint(-5,-1,5) + assert N.all(-5 <= x) + assert N.all(x < -1) + if __name__ == "__main__": NumpyTest().run() |