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

Method test_slices

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

Source from the content-addressed store, hash-verified

865 assert_array_equal(xor, self.nd_a[0,:, 0], err_msg=msg)
866
867 def test_slices(self):
868 lims = [-6, -2, 0, 1, 2, 4, 5]
869 steps = [-3, -1, 1, 3]
870 for start in lims:
871 for stop in lims:
872 for step in steps:
873 s = slice(start, stop, step)
874 self._check_inverse_of_slicing(s)
875
876 def test_fancy(self):
877 self._check_inverse_of_slicing(np.array([[0, 1], [2, 1]]))

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected