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

Method test_no_trim

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

Source from the content-addressed store, hash-verified

1307 assert_array_equal(res, arr[slc])
1308
1309 def test_no_trim(self):
1310 arr = np.array([None, 1, None])
1311 res = trim_zeros(arr)
1312 assert_array_equal(arr, res)
1313
1314 def test_list_to_list(self):
1315 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