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

Method test_trailing_skip

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

Source from the content-addressed store, hash-verified

1443 assert_array_equal(res, arr[slc])
1444
1445 def test_trailing_skip(self):
1446 slc = np.s_[2:]
1447 for arr in self.values():
1448 res = trim_zeros(arr, trim='F')
1449 assert_array_equal(res, arr[slc])
1450
1451 def test_all_zero(self):
1452 for _arr in self.values():

Callers

nothing calls this directly

Calls 3

valuesMethod · 0.95
trim_zerosFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected