MCPcopy
hub / github.com/numpy/numpy / test_basic

Method test_basic

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

Source from the content-addressed store, hash-verified

176
177class TestFliplr:
178 def test_basic(self):
179 assert_raises(ValueError, fliplr, ones(4))
180 a = get_mat(4)
181 b = a[:, ::-1]
182 assert_equal(fliplr(a), b)
183 a = [[0, 1, 2],
184 [3, 4, 5]]
185 b = [[2, 1, 0],
186 [5, 4, 3]]
187 assert_equal(fliplr(a), b)
188
189
190class TestFlipud:

Callers

nothing calls this directly

Calls 5

assert_raisesFunction · 0.90
onesFunction · 0.90
assert_equalFunction · 0.90
fliplrFunction · 0.90
get_matFunction · 0.70

Tested by

no test coverage detected