MCPcopy
hub / github.com/numpy/numpy / test_shuffle

Method test_shuffle

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

Source from the content-addressed store, hash-verified

283 assert_((n1 == n2).all())
284
285 def test_shuffle(self):
286 rg = self._create_rng().rg
287 original = np.arange(200, 0, -1)
288 permuted = rg.permutation(original)
289 assert_((original != permuted).any())
290
291 def test_permutation(self):
292 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