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

Method test_2D_array

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

Source from the content-addressed store, hash-verified

515 assert_array_equal(res, desired)
516
517 def test_2D_array(self):
518 a = np.array([[1], [2]])
519 b = np.array([[1], [2]])
520 res = dstack([a, b])
521 desired = np.array([[[1, 1]], [[2, 2, ]]])
522 assert_array_equal(res, desired)
523
524 def test_2D_array2(self):
525 a = np.array([1, 2])

Callers

nothing calls this directly

Calls 2

dstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected