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

Method test_permutation

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

Source from the content-addressed store, hash-verified

289 assert_((original != permuted).any())
290
291 def test_permutation(self):
292 rg = self._create_rng().rg
293 original = np.arange(200, 0, -1)
294 permuted = rg.permutation(original)
295 assert_((original != permuted).any())
296
297 def test_beta(self):
298 rg = self._create_rng().rg

Callers

nothing calls this directly

Calls 3

_create_rngMethod · 0.95
assert_Function · 0.90
anyMethod · 0.45

Tested by

no test coverage detected