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

Method test_random_shuffle

numpy/_core/tests/test_regression.py:697–702  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

695 assert_(a.dtype in [dt0, dt1])
696
697 def test_random_shuffle(self):
698 # Ticket #374
699 a = np.arange(5).reshape((5, 1))
700 b = a.copy()
701 np.random.shuffle(b)
702 assert_equal(np.sort(b, axis=0), a)
703
704 def test_refcount_vdot(self):
705 # Changeset #3443

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected