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

Method test_list_to_list

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

Source from the content-addressed store, hash-verified

1480 assert_array_equal(arr, res)
1481
1482 def test_list_to_list(self):
1483 res = trim_zeros(self.a.tolist())
1484 assert isinstance(res, list)
1485
1486 @pytest.mark.parametrize("ndim", (0, 1, 2, 3, 10))
1487 def test_nd_basic(self, ndim):

Callers

nothing calls this directly

Calls 2

trim_zerosFunction · 0.90
tolistMethod · 0.45

Tested by

no test coverage detected