test_gamma.py 258 B

123456789101112
  1. import numpy as np
  2. import scipy.special as sc
  3. class TestRgamma:
  4. def test_gh_11315(self):
  5. assert sc.rgamma(-35) == 0
  6. def test_rgamma_zeros(self):
  7. x = np.array([0, -10, -100, -1000, -10000])
  8. assert np.all(sc.rgamma(x) == 0)