MCPcopy Create free account
hub / github.com/numpy/numpy / test_uniform

Method test_uniform

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

Source from the content-addressed store, hash-verified

149 pytest.skip(f'Jump is not supported by {bitgen_name}')
150
151 def test_uniform(self):
152 r = self.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 r = self.rg.uniform(np.array([-1.0] * 10), 0.0, size=10)

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
uniformMethod · 0.80
allMethod · 0.45

Tested by

no test coverage detected