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

Method test_no_trim

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

Source from the content-addressed store, hash-verified

1475 assert_array_equal(res, arr[slc])
1476
1477 def test_no_trim(self):
1478 arr = np.array([None, 1, None])
1479 res = trim_zeros(arr)
1480 assert_array_equal(arr, res)
1481
1482 def test_list_to_list(self):
1483 res = trim_zeros(self.a.tolist())

Callers

nothing calls this directly

Calls 2

trim_zerosFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected