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

Method test_basic_lr

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

Source from the content-addressed store, hash-verified

167 assert_raises(AxisError, np.flip, np.ones((4, 4)), axis=(0, 3))
168
169 def test_basic_lr(self):
170 a = get_mat(4)
171 b = a[:, ::-1]
172 assert_equal(np.flip(a, 1), b)
173 a = [[0, 1, 2],
174 [3, 4, 5]]
175 b = [[2, 1, 0],
176 [5, 4, 3]]
177 assert_equal(np.flip(a, 1), b)
178
179 def test_basic_ud(self):
180 a = get_mat(4)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
get_matFunction · 0.70

Tested by

no test coverage detected