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

Method test_empty

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

Source from the content-addressed store, hash-verified

212 assert_array_almost_equal(values, [1.3, 2.5, 2.3])
213
214 def test_empty(self):
215 a, b = histogram([], bins=([0, 1]))
216 assert_array_equal(a, np.array([0]))
217 assert_array_equal(b, np.array([0, 1]))
218
219 def test_error_binnum_type(self):
220 # Tests if right Error is raised if bins argument is float

Callers

nothing calls this directly

Calls 2

histogramFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected