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

Method test_2D_array2

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

Source from the content-addressed store, hash-verified

522 assert_array_equal(res, desired)
523
524 def test_2D_array2(self):
525 a = np.array([1, 2])
526 b = np.array([1, 2])
527 res = dstack([a, b])
528 desired = np.array([[[1, 1], [2, 2]]])
529 assert_array_equal(res, desired)
530
531 def test_generator(self):
532 with pytest.raises(TypeError, match="arrays to stack must be"):

Callers

nothing calls this directly

Calls 2

dstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected