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

Method test_empty

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

Source from the content-addressed store, hash-verified

240 assert_array_equal(H, 0)
241
242 def test_empty(self):
243 a, edge1, edge2 = histogram2d([], [], bins=([0, 1], [0, 1]))
244 assert_array_max_ulp(a, array([[0.]]))
245
246 a, edge1, edge2 = histogram2d([], [], bins=4)
247 assert_array_max_ulp(a, np.zeros((4, 4)))
248
249 def test_binparameter_combination(self):
250 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