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

Method test_2D_array

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

Source from the content-addressed store, hash-verified

605 assert_raises(ValueError, dsplit, a, 2)
606
607 def test_2D_array(self):
608 a = np.array([[1, 2, 3, 4],
609 [1, 2, 3, 4]])
610 try:
611 dsplit(a, 2)
612 assert_(0)
613 except ValueError:
614 pass
615
616 def test_3D_array(self):
617 a = np.array([[[1, 2, 3, 4],

Callers

nothing calls this directly

Calls 2

dsplitFunction · 0.90
assert_Function · 0.90

Tested by

no test coverage detected