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

Method test_empty

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

Source from the content-addressed store, hash-verified

684 assert_array_equal(edges[0], np.array([-0.5, 0., 0.5]))
685
686 def test_empty(self):
687 a, b = histogramdd([[], []], bins=([0, 1], [0, 1]))
688 assert_array_max_ulp(a, np.array([[0.]]))
689 a, b = np.histogramdd([[], [], []], bins=2)
690 assert_array_max_ulp(a, np.zeros((2, 2, 2)))
691
692 def test_bins_errors(self):
693 # 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