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

Method test_empty

numpy/lib/tests/test_twodim_base.py:260–265  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

258 assert_array_equal(H, 0)
259
260 def test_empty(self):
261 a, edge1, edge2 = histogram2d([], [], bins=([0, 1], [0, 1]))
262 assert_array_max_ulp(a, array([[0.]]))
263
264 a, edge1, edge2 = histogram2d([], [], bins=4)
265 assert_array_max_ulp(a, np.zeros((4, 4)))
266
267 def test_binparameter_combination(self):
268 x = array(

Callers

nothing calls this directly

Calls 3

histogram2dFunction · 0.90
assert_array_max_ulpFunction · 0.90
arrayFunction · 0.90

Tested by

no test coverage detected