summaryrefslogtreecommitdiff
path: root/numpy/random/tests/test_random.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2008-08-23 06:12:01 +0000
committerRobert Kern <robert.kern@gmail.com>2008-08-23 06:12:01 +0000
commitfddd71692cf8cd6db44b10c5d6140dbb32c49093 (patch)
tree2154acceface282fa37278d2106121dacd238a6f /numpy/random/tests/test_random.py
parent5e32ad607e852ee2358352734c63fa6d7995a186 (diff)
downloadnumpy-fddd71692cf8cd6db44b10c5d6140dbb32c49093.tar.gz
BUG: Allow floating point argument n to negative binomial distribution.
Diffstat (limited to 'numpy/random/tests/test_random.py')
-rw-r--r--numpy/random/tests/test_random.py6
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()