MCPcopy Index your code
hub / github.com/numpy/numpy / test_1D_array

Method test_1D_array

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

Source from the content-addressed store, hash-verified

159 assert_array_equal(res, desired)
160
161 def test_1D_array(self):
162 a = array([1])
163 b = array([2])
164 res = hstack([a, b])
165 desired = array([1, 2])
166 assert_array_equal(res, desired)
167
168 def test_2D_array(self):
169 a = array([[1], [2]])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
hstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected