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

Method test_basic

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

Source from the content-addressed store, hash-verified

158
159class TestFliplr:
160 def test_basic(self):
161 assert_raises(ValueError, fliplr, ones(4))
162 a = get_mat(4)
163 b = a[:, ::-1]
164 assert_equal(fliplr(a), b)
165 a = [[0, 1, 2],
166 [3, 4, 5]]
167 b = [[2, 1, 0],
168 [5, 4, 3]]
169 assert_equal(fliplr(a), b)
170
171
172class 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