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

Method test_random_shuffle

numpy/core/tests/test_regression.py:684–689  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

682 assert_(a.dtype in [dt0, dt1])
683
684 def test_random_shuffle(self):
685 # Ticket #374
686 a = np.arange(5).reshape((5, 1))
687 b = a.copy()
688 np.random.shuffle(b)
689 assert_equal(np.sort(b, axis=0), a)
690
691 def test_refcount_vdot(self):
692 # Changeset #3443

Callers

nothing calls this directly

Calls 4

assert_equalFunction · 0.90
reshapeMethod · 0.80
sortMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected