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

Method test_empty

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

Source from the content-addressed store, hash-verified

208 assert_array_almost_equal(values, [1.3, 2.5, 2.3])
209
210 def test_empty(self):
211 a, b = histogram([], bins=([0, 1]))
212 assert_array_equal(a, np.array([0]))
213 assert_array_equal(b, np.array([0, 1]))
214
215 def test_error_binnum_type (self):
216 # 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