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

Method test_1D_array

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

Source from the content-addressed store, hash-verified

508 assert_array_equal(res, desired)
509
510 def test_1D_array(self):
511 a = np.array([1])
512 b = np.array([2])
513 res = dstack([a, b])
514 desired = np.array([[[1, 2]]])
515 assert_array_equal(res, desired)
516
517 def test_2D_array(self):
518 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