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

Method test_3D_array

numpy/lib/tests/test_shape_base.py:616–624  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

614 pass
615
616 def test_3D_array(self):
617 a = np.array([[[1, 2, 3, 4],
618 [1, 2, 3, 4]],
619 [[1, 2, 3, 4],
620 [1, 2, 3, 4]]])
621 res = dsplit(a, 2)
622 desired = [np.array([[[1, 2], [1, 2]], [[1, 2], [1, 2]]]),
623 np.array([[[3, 4], [3, 4]], [[3, 4], [3, 4]]])]
624 compare_results(res, desired)
625
626
627class TestSqueeze:

Callers

nothing calls this directly

Calls 2

dsplitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected