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

Method test_2D_array

numpy/_core/tests/test_shape_base.py:216–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214 assert_array_equal(res, desired)
215
216 def test_2D_array(self):
217 a = array([[1], [2]])
218 b = array([[1], [2]])
219 res = vstack([a, b])
220 desired = array([[1], [2], [1], [2]])
221 assert_array_equal(res, desired)
222
223 def test_2D_array2(self):
224 a = array([1, 2])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
vstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected