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

Method test_leading_skip

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

Source from the content-addressed store, hash-verified

1269 assert_array_equal(res, arr[slc])
1270
1271 def test_leading_skip(self):
1272 slc = np.s_[:-1]
1273 for arr in self.values():
1274 res = trim_zeros(arr, trim='b')
1275 assert_array_equal(res, arr[slc])
1276
1277 def test_trailing_skip(self):
1278 slc = np.s_[2:]

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