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

Method test

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

Source from the content-addressed store, hash-verified

34class test_generic_iterator(unittest.TestCase):
35
36 def test(self):
37 from histogram.axis import generic_iterator as giter
38 x = (1, 2, 3)
39 it = giter(x)
40 it2 = it.__iter__()
41 self.assertEqual(it.next(), 1)
42 self.assertEqual(it2.next(), 2)
43 self.assertEqual(it.__next__(), 3)
44 with self.assertRaises(StopIteration):
45 it.next()
46
47
48class test_regular(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected