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

Method test_0D_array

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

Source from the content-addressed store, hash-verified

501 assert_raises(TypeError, dstack, 1)
502
503 def test_0D_array(self):
504 a = np.array(1)
505 b = np.array(2)
506 res = dstack([a, b])
507 desired = np.array([[[1, 2]]])
508 assert_array_equal(res, desired)
509
510 def test_1D_array(self):
511 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