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

Method test_size_zero

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

Source from the content-addressed store, hash-verified

1291 assert len(res2) == 0
1292
1293 def test_size_zero(self):
1294 arr = np.zeros(0)
1295 res = trim_zeros(arr)
1296 assert_array_equal(arr, res)
1297
1298 @pytest.mark.parametrize(
1299 'arr',

Callers

nothing calls this directly

Calls 2

trim_zerosFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected