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

Method test_iter

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

Source from the content-addressed store, hash-verified

348 a[5]
349
350 def test_iter(self):
351 v = [-1, 0, 1, 2, 3]
352 a = integer(-1, 3)
353 self.assertEqual([x[0] for x in a], v[:-1])
354 self.assertEqual([x[1] for x in a], v[1:])
355
356 def test_index(self):
357 a = integer(-1, 3)

Callers

nothing calls this directly

Calls 1

integerClass · 0.90

Tested by

no test coverage detected