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

Method test_add_2d_bad

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

Source from the content-addressed store, hash-verified

572 self.assertEqual(h.at(i, j).variance, 2 * m[i][j])
573
574 def test_add_2d_bad(self):
575 a = histogram(integer(-1, 1))
576 b = histogram(regular(3, -1, 1))
577 with self.assertRaises(ValueError):
578 a += b
579
580 def test_add_2d_w(self):
581 for uoflow in (False, True):

Callers

nothing calls this directly

Calls 3

integerClass · 0.90
regularClass · 0.90
histogramClass · 0.50

Tested by

no test coverage detected