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

Method test_iter

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

Source from the content-addressed store, hash-verified

206 a[4]
207
208 def test_iter(self):
209 a = circular(4, 1.0)
210 v = [1.0, 1.0 + 0.5 * pi, 1.0 + pi, 1.0 + 1.5 * pi, 1.0 + 2.0 * pi]
211 self.assertEqual([x[0] for x in a], v[:-1])
212 self.assertEqual([x[1] for x in a], v[1:])
213
214 def test_index(self):
215 a = circular(4, 1.0)

Callers

nothing calls this directly

Calls 1

circularClass · 0.90

Tested by

no test coverage detected