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

Method test_basic_lr

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

Source from the content-addressed store, hash-verified

122 assert_raises(np.AxisError, np.flip, np.ones((4, 4)), axis=(0, 3))
123
124 def test_basic_lr(self):
125 a = get_mat(4)
126 b = a[:, ::-1]
127 assert_equal(np.flip(a, 1), b)
128 a = [[0, 1, 2],
129 [3, 4, 5]]
130 b = [[2, 1, 0],
131 [5, 4, 3]]
132 assert_equal(np.flip(a, 1), b)
133
134 def test_basic_ud(self):
135 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