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

Method test_shuffle

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

Source from the content-addressed store, hash-verified

266 assert_((n1 == n2).all())
267
268 def test_shuffle(self):
269 original = np.arange(200, 0, -1)
270 permuted = self.rg.permutation(original)
271 assert_((original != permuted).any())
272
273 def test_permutation(self):
274 original = np.arange(200, 0, -1)

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
anyMethod · 0.45

Tested by

no test coverage detected