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

Method test_basic_ud

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

Source from the content-addressed store, hash-verified

132 assert_equal(np.flip(a, 1), b)
133
134 def test_basic_ud(self):
135 a = get_mat(4)
136 b = a[::-1, :]
137 assert_equal(np.flip(a, 0), b)
138 a = [[0, 1, 2],
139 [3, 4, 5]]
140 b = [[3, 4, 5],
141 [0, 1, 2]]
142 assert_equal(np.flip(a, 0), b)
143
144 def test_3d_swap_axis0(self):
145 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