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

Method test_1D_array

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

Source from the content-addressed store, hash-verified

100 assert_array_equal(res, desired)
101
102 def test_1D_array(self):
103 a = array([1, 2])
104 b = array([2, 3])
105 res = [atleast_3d(a), atleast_3d(b)]
106 desired = [array([[[1], [2]]]), array([[[2], [3]]])]
107 assert_array_equal(res, desired)
108
109 def test_2D_array(self):
110 a = array([[1, 2], [1, 2]])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
atleast_3dFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected