MCPcopy Index your code
hub / github.com/numpy/numpy / test_slices

Method test_slices

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

Source from the content-addressed store, hash-verified

1002 assert_array_equal(xor, nd_a[0, :, 0], err_msg=msg)
1003
1004 def test_slices(self):
1005 lims = [-6, -2, 0, 1, 2, 4, 5]
1006 steps = [-3, -1, 1, 3]
1007 for start in lims:
1008 for stop in lims:
1009 for step in steps:
1010 s = slice(start, stop, step)
1011 self._check_inverse_of_slicing(s)
1012
1013 def test_fancy(self):
1014 a, _ = self._create_arrays()

Callers

nothing calls this directly

Calls 2

sliceFunction · 0.85

Tested by

no test coverage detected