MCPcopy Index your code
hub / github.com/numpy/numpy / test_basic_ud

Method test_basic_ud

numpy/lib/tests/test_function_base.py:179–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 assert_equal(np.flip(a, 1), b)
178
179 def test_basic_ud(self):
180 a = get_mat(4)
181 b = a[::-1, :]
182 assert_equal(np.flip(a, 0), b)
183 a = [[0, 1, 2],
184 [3, 4, 5]]
185 b = [[3, 4, 5],
186 [0, 1, 2]]
187 assert_equal(np.flip(a, 0), b)
188
189 def test_3d_swap_axis0(self):
190 a = np.array([[[0, 1],

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
get_matFunction · 0.70

Tested by

no test coverage detected