MCPcopy
hub / github.com/numpy/numpy / test_empty

Method test_empty

numpy/lib/tests/test_histograms.py:725–729  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

723 assert_array_equal(edges[0], np.array([-0.5, 0., 0.5]))
724
725 def test_empty(self):
726 a, b = histogramdd([[], []], bins=([0, 1], [0, 1]))
727 assert_array_max_ulp(a, np.array([[0.]]))
728 a, b = np.histogramdd([[], [], []], bins=2)
729 assert_array_max_ulp(a, np.zeros((2, 2, 2)))
730
731 def test_bins_errors(self):
732 # There are two ways to specify bins. Check for the right errors

Callers

nothing calls this directly

Calls 2

histogramddFunction · 0.90
assert_array_max_ulpFunction · 0.90

Tested by

no test coverage detected