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

Method test_basic

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

Source from the content-addressed store, hash-verified

411class test_histogram_element(unittest.TestCase):
412
413 def test_basic(self):
414 elem = histogram.element(1, 2)
415 self.assertEqual(elem.value, 1)
416 self.assertEqual(elem.variance, 2)
417 self.assertEqual(len(elem), 2)
418 self.assertEqual(elem[0], 1)
419 self.assertEqual(elem[1], 2)
420 self.assertEqual(tuple(elem), (1, 2))
421
422 def test_ops(self):
423 a = histogram.element(1, 2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected