MCPcopy
hub / github.com/numpy/numpy / test_0D_array

Method test_0D_array

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

Source from the content-addressed store, hash-verified

530 assert_raises(TypeError, dstack, 1)
531
532 def test_0D_array(self):
533 a = np.array(1)
534 b = np.array(2)
535 res = dstack([a, b])
536 desired = np.array([[[1, 2]]])
537 assert_array_equal(res, desired)
538
539 def test_1D_array(self):
540 a = np.array([1])

Callers

nothing calls this directly

Calls 2

dstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected