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

Method test_3D_array

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

Source from the content-addressed store, hash-verified

643 pass
644
645 def test_3D_array(self):
646 a = np.array([[[1, 2, 3, 4],
647 [1, 2, 3, 4]],
648 [[1, 2, 3, 4],
649 [1, 2, 3, 4]]])
650 res = dsplit(a, 2)
651 desired = [np.array([[[1, 2], [1, 2]], [[1, 2], [1, 2]]]),
652 np.array([[[3, 4], [3, 4]], [[3, 4], [3, 4]]])]
653 compare_results(res, desired)
654
655
656class TestSqueeze:

Callers

nothing calls this directly

Calls 2

dsplitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected