MCPcopy
hub / github.com/numpy/numpy / test_2D_array2

Method test_2D_array2

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

Source from the content-addressed store, hash-verified

551 assert_array_equal(res, desired)
552
553 def test_2D_array2(self):
554 a = np.array([1, 2])
555 b = np.array([1, 2])
556 res = dstack([a, b])
557 desired = np.array([[[1, 1], [2, 2]]])
558 assert_array_equal(res, desired)
559
560 def test_generator(self):
561 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