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

Method test_2D_array

numpy/core/tests/test_shape_base.py:195–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 assert_array_equal(res, desired)
194
195 def test_2D_array(self):
196 a = array([[1], [2]])
197 b = array([[1], [2]])
198 res = vstack([a, b])
199 desired = array([[1], [2], [1], [2]])
200 assert_array_equal(res, desired)
201
202 def test_2D_array2(self):
203 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