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

Method test_size_zero

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

Source from the content-addressed store, hash-verified

1459 assert len(res2) == 0
1460
1461 def test_size_zero(self):
1462 arr = np.zeros(0)
1463 res = trim_zeros(arr)
1464 assert_array_equal(arr, res)
1465
1466 @pytest.mark.parametrize(
1467 'arr',

Callers

nothing calls this directly

Calls 2

trim_zerosFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected