MCPcopy
hub / github.com/numpy/numpy / test_2D_array

Method test_2D_array

numpy/_core/tests/test_shape_base.py:51–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 assert_array_equal(res, desired)
50
51 def test_2D_array(self):
52 a = array([[1, 2], [1, 2]])
53 b = array([[2, 3], [2, 3]])
54 res = [atleast_1d(a), atleast_1d(b)]
55 desired = [a, b]
56 assert_array_equal(res, desired)
57
58 def test_3D_array(self):
59 a = array([[1, 2], [1, 2]])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
atleast_1dFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected