MCPcopy Create free account
hub / github.com/boostorg/histogram / test_overflow

Method test_overflow

test/python_suite_test.py:629–635  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

627 h.axis(-3)
628
629 def test_overflow(self):
630 h = histogram(*[regular(1, 0, 1) for i in range(50)])
631 with self.assertRaises(ValueError):
632 h(*range(50))
633
634 with self.assertRaises(ValueError):
635 h.at(*range(50)).value
636
637 def test_out_of_range(self):
638 h = histogram(regular(3, 0, 1))

Callers

nothing calls this directly

Calls 3

regularClass · 0.90
atMethod · 0.80
histogramClass · 0.50

Tested by

no test coverage detected