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

Method test_precision

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

Source from the content-addressed store, hash-verified

376 self.do_precision_upper_bound(float_small, float_large)
377
378 def test_precision(self):
379 # not looping results in a useful stack trace upon failure
380 self.do_precision(np.half, np.single)
381 self.do_precision(np.half, np.double)
382 self.do_precision(np.half, np.longdouble)
383 self.do_precision(np.single, np.double)
384 self.do_precision(np.single, np.longdouble)
385 self.do_precision(np.double, np.longdouble)
386
387 def test_histogram_bin_edges(self):
388 hist, e = histogram([1, 2, 3, 4], [1, 2])

Callers

nothing calls this directly

Calls 1

do_precisionMethod · 0.95

Tested by

no test coverage detected