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

Method test_basic

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

Source from the content-addressed store, hash-verified

1431 return (getattr(self, name) for name in attr_names)
1432
1433 def test_basic(self):
1434 slc = np.s_[2:-1]
1435 for arr in self.values():
1436 res = trim_zeros(arr)
1437 assert_array_equal(res, arr[slc])
1438
1439 def test_leading_skip(self):
1440 slc = np.s_[:-1]

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