MCPcopy
hub / github.com/numpy/numpy / test_2D_array

Method test_2D_array

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

Source from the content-addressed store, hash-verified

544 assert_array_equal(res, desired)
545
546 def test_2D_array(self):
547 a = np.array([[1], [2]])
548 b = np.array([[1], [2]])
549 res = dstack([a, b])
550 desired = np.array([[[1, 1]], [[2, 2, ]]])
551 assert_array_equal(res, desired)
552
553 def test_2D_array2(self):
554 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