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

Method test_iter

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

Source from the content-addressed store, hash-verified

111 a[5]
112
113 def test_iter(self):
114 v = [1.0, 1.25, 1.5, 1.75, 2.0]
115 a = regular(4, 1.0, 2.0)
116 self.assertAlmostEqual([x[0] for x in a], v[:-1])
117 self.assertAlmostEqual([x[1] for x in a], v[1:])
118
119 def test_index(self):
120 a = regular(4, 1.0, 2.0)

Callers

nothing calls this directly

Calls 1

regularClass · 0.90

Tested by

no test coverage detected