MCPcopy Index your code
hub / github.com/python/cpython / test_count

Method test_count

Lib/test/test_itertools.py:1572–1573  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1570 self.assertEqual(list(compress('ABCDEF', [1,0,1,0,1,1])), list('ACEF'))
1571
1572 def test_count(self):
1573 self.assertEqual(list(islice(count(10), 5)), [10, 11, 12, 13, 14])
1574
1575 def test_cycle(self):
1576 self.assertEqual(list(islice(cycle('ABCD'), 12)), list('ABCDABCDABCD'))

Callers

nothing calls this directly

Calls 3

listClass · 0.85
countFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected