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

Method test_permutation

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

Source from the content-addressed store, hash-verified

271 assert_((original != permuted).any())
272
273 def test_permutation(self):
274 original = np.arange(200, 0, -1)
275 permuted = self.rg.permutation(original)
276 assert_((original != permuted).any())
277
278 def test_beta(self):
279 vals = self.rg.beta(2.0, 2.0, 10)

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
anyMethod · 0.45

Tested by

no test coverage detected