MCPcopy
hub / github.com/numpy/numpy / test_1D_array

Method test_1D_array

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

Source from the content-addressed store, hash-verified

537 assert_array_equal(res, desired)
538
539 def test_1D_array(self):
540 a = np.array([1])
541 b = np.array([2])
542 res = dstack([a, b])
543 desired = np.array([[[1, 2]]])
544 assert_array_equal(res, desired)
545
546 def test_2D_array(self):
547 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