MCPcopy Index your code
hub / github.com/numpy/numpy / test_uniform

Method test_uniform

numpy/random/tests/test_smoke.py:150–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 pytest.skip(f'Jump is not supported by {bitgen_name}')
149
150 def test_uniform(self):
151 rg = self._create_rng().rg
152 r = rg.uniform(-1.0, 0.0, size=10)
153 assert_(len(r) == 10)
154 assert_((r > -1).all())
155 assert_((r <= 0).all())
156
157 def test_uniform_array(self):
158 rg = self._create_rng().rg

Callers

nothing calls this directly

Calls 4

_create_rngMethod · 0.95
assert_Function · 0.90
uniformMethod · 0.80
allMethod · 0.45

Tested by

no test coverage detected