diff options
Diffstat (limited to 'numpy/random/tests/test_random.py')
-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 a665ff423..8dae16fcb 100644 --- a/numpy/random/tests/test_random.py +++ b/numpy/random/tests/test_random.py @@ -60,6 +60,12 @@ class TestSetState(TestCase): assert np.all(x1 == x2) assert np.all(x1 == x3) + def test_negative_binomial(self): + """ Ensure that the negative binomial results take floating point + arguments without truncation. + """ + self.prng.negative_binomial(0.5, 0.5) + if __name__ == "__main__": run_module_suite() |